Changeset 6839
- Timestamp:
- 1 Oct 2011, 06:44:44 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/app.py
r6633 r6839 73 73 74 74 @grok.subscribe(University, grok.IObjectAddedEvent) 75 def handle_university_add (app, event):75 def handle_university_added(app, event): 76 76 app.logger.info('University `%s` added.' % getattr(app, '__name__', None)) 77 77 return -
main/waeup.sirp/trunk/src/waeup/sirp/authentication.py
r6673 r6839 172 172 173 173 @grok.subscribe(IUserAccount, grok.IObjectRemovedEvent) 174 def handle_account_remov al(account, event):174 def handle_account_removed(account, event): 175 175 """When an account is removed, local roles might have to be deleted. 176 176 """ -
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r6838 r6839 96 96 97 97 @grok.subscribe(IStudent, grok.IObjectAddedEvent) 98 def addStudentHandler(student, event):98 def handle_student_added(student, event): 99 99 """If a student is added all subcontainers are automatically added 100 100 and the transition create is fired. The latter produces a logging message. … … 118 118 119 119 @grok.subscribe(IStudent, grok.IObjectRemovedEvent) 120 def removedStudentHandler(student, event):120 def handle_student_removed(student, event): 121 121 """If a student is removed a message is logged. 122 122 """ -
main/waeup.sirp/trunk/src/waeup/sirp/university/catalog.py
r6797 r6839 48 48 49 49 @grok.subscribe(ICourse, grok.IObjectAddedEvent) 50 def handle CourseAdd(obj, event):50 def handle_course_added(obj, event): 51 51 """Index an added course with the local catalog. 52 52 … … 71 71 72 72 @grok.subscribe(ICourse, grok.IObjectAddedEvent) 73 def handle CertificateAdd(obj, event):73 def handle_certificate_added(obj, event): 74 74 """Index an added certificate with the local catalog. 75 75 … … 86 86 87 87 @grok.subscribe(ICertificateCourse, grok.IObjectAddedEvent) 88 def handle CertificateCourseAdd(obj, event):88 def handlecertificatecourse_added(obj, event): 89 89 """Index an added certificatecourse with the local catalog. 90 90 … … 101 101 102 102 @grok.subscribe(IDepartment, grok.IObjectRemovedEvent) 103 def handle DepartmentRemoval(obj, event):103 def handle_department_removed(obj, event): 104 104 """Clear courses and certificates when a department is killed. 105 105 """ -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r6296 r6839 97 97 98 98 @grok.subscribe(ICourse, grok.IObjectRemovedEvent) 99 def removedCourseHandler(course, event):99 def handle_course_removed(course, event): 100 100 """If a course is deleted, we make sure that also referrers in a 101 101 certificatecontainer are removed. -
main/waeup.sirp/trunk/src/waeup/sirp/users.py
r6527 r6839 64 64 65 65 @grok.subscribe(Interface, grok.IObjectRemovedEvent) 66 def handle_local_roles_on_obj_remov al(obj, event):66 def handle_local_roles_on_obj_removed(obj, event): 67 67 try: 68 68 role_map = IPrincipalRoleMap(obj) -
main/waeup.sirp/trunk/src/waeup/sirp/utils/logger.py
r6754 r6839 343 343 344 344 @grok.subscribe(IDataCenter, IDataCenterStorageMovedEvent) 345 def handle_datacenter_storage_move (obj, event):345 def handle_datacenter_storage_moved(obj, event): 346 346 """Event handler, in case datacenter storage moves. 347 347 … … 370 370 from waeup.sirp.interfaces import IUniversity 371 371 @grok.subscribe(IUniversity, grok.IObjectRemovedEvent) 372 def handle_site_remov al(obj, event):372 def handle_site_removed(obj, event): 373 373 collector = queryUtility(ILoggerCollector) 374 374 name = getattr(obj, '__name__', None)
Note: See TracChangeset for help on using the changeset viewer.