Changeset 2039
- Timestamp:
- 20 Jul 2007, 08:58:54 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r2033 r2039 550 550 if event_type not in ("sys_add_object","sys_del_object"): 551 551 return 552 #import pdb;pdb.set_trace()553 552 level_session = getattr(object.aq_parent.getContent(),'session','unknown') 554 553 if level_session not in (self.getSessionId()[-2:],'2006/2007'): … … 562 561 return 563 562 student_rec = res[0] 564 registered_courses = getattr(student_rec,'registered_courses',[]) 565 try: 566 x = course_id in registered_courses 567 except TypeError: 563 registered_courses = getattr(student_rec,'registered_courses',None) 564 if not registered_courses: 568 565 registered_courses = [] 566 #import pdb;pdb.set_trace() 569 567 if event_type == "sys_add_object": 570 568 if course_id not in registered_courses: … … 572 570 else: 573 571 return 574 elif event_type == "sys_del_object": 572 elif registered_courses and event_type == "sys_del_object": 573 removed = False 575 574 while course_id in registered_courses: 575 removed = True 576 576 registered_courses.remove(course_id) 577 if not removed: 578 return 577 579 data['id'] = student_id 578 580 data['registered_courses'] = registered_courses -
WAeUP_SRP/trunk/__init__.py
r2013 r2039 24 24 import PatchFasterSessionData 25 25 import PatchQueueCatalogProcessQueue 26 import PatchZCatalogCatalogUpdateMetadata 26 27 # Only for CPS 3.4.1. In 3.4.2 and later this should be fixed. 27 28 import PatchCPSDefaultImportExport
Note: See TracChangeset for help on using the changeset viewer.