Changeset 1722 for WAeUP_SRP/trunk
- Timestamp:
- 28 Apr 2007, 11:20:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1716 r1722 703 703 if pt != 'Course': 704 704 return 705 #from pdb import set_trace;set_trace()706 705 data = {} 707 706 rpl = infos['rpath'].split('/') … … 711 710 data[self.key] = course_id 712 711 if event_type == "sys_add_object": 712 doc = object.getContent() 713 #from pdb import set_trace;set_trace() 714 for field in self.schema(): 715 if field != self.key: 716 data[field] = getattr(doc,field,None) 713 717 try: 714 718 self.addRecord(**data) … … 719 723 if event_type == "sys_modify_object" and mt == 'Course': 720 724 for field in self.schema(): 721 data[field] = getattr(object,field,None) 725 if field != self.key: 726 data[field] = getattr(object,field,None) 722 727 course_id = object.aq_parent.getId() 723 728 data[self.key] = course_id
Note: See TracChangeset for help on using the changeset viewer.