Changeset 1713 for WAeUP_SRP/trunk/skins/waeup_utilities
- Timestamp:
- 26 Apr 2007, 05:04:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/setNewEntryMode.py
r1707 r1713 36 36 logger.info('setNewEntryMode start') 37 37 for brain in brains: 38 if not brain.entry_mode in ('UME','DE'): 39 continue 38 40 stud_obj = brain.getObject() 39 try: 41 try: 40 42 app_doc = stud_obj.application.getContent() 41 43 except: 42 44 continue 43 try: 45 try: 44 46 sc_doc = stud_obj.study_course.getContent() 45 47 except: … … 59 61 if sc_doc: 60 62 sc_doc.edit(mapping={'current_mode': new_em}) 61 context.students_catalog.modifyRecord(id = sid, 63 context.students_catalog.modifyRecord(id = sid, 62 64 mode=new_em, 63 65 entry_mode=new_em, 64 66 entry_level=el) 65 67 else: 66 context.students_catalog.modifyRecord(id = sid, 68 context.students_catalog.modifyRecord(id = sid, 67 69 entry_mode=new_em, 68 70 entry_level=el) 69 71 70 72 count += 1 71 73 commit_count += 1
Note: See TracChangeset for help on using the changeset viewer.