Changeset 2396 for WAeUP_SRP/base/WAeUPTables.py
- Timestamp:
- 19 Oct 2007, 14:17:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2368 r2396 459 459 ###) 460 460 461 security.declarePublic("missingValue")###( 462 def missingValue(self): 463 from Missing import MV 464 return MV 465 ###) 461 466 ###) 462 467 … … 538 543 return 2 539 544 return -3 540 541 545 InitializeClass(PinTable) 542 543 546 ###) 544 547 … … 1083 1086 return 1084 1087 rpl = infos['rpath'].split('/') 1085 if pt == 'Student' and mt == 'CPS Proxy Folder'\ 1086 and event_type == "sys_add_object": 1088 if pt == 'Student' and mt == 'CPS Proxy Folder': 1087 1089 student_id = object.id 1088 try: 1089 self.addRecord(id = student_id) 1090 except ValueError: 1091 pass 1092 return 1090 if event_type == "sys_add_object": 1091 try: 1092 self.addRecord(id = student_id) 1093 except ValueError: 1094 pass 1095 return 1096 elif event_type == 'sys_del_object': 1097 self.deleteRecord(student_id) 1098 #import pdb;pdb.set_trace() 1093 1099 elif pt == 'StudentCourseResult' and mt == 'CPS Proxy Folder': 1094 1100 if event_type not in ("sys_add_object","sys_del_object"): … … 1108 1114 if not registered_courses: 1109 1115 registered_courses = [] 1110 #import pdb;pdb.set_trace()1111 1116 if event_type == "sys_add_object": 1112 1117 if course_id not in registered_courses:
Note: See TracChangeset for help on using the changeset viewer.