Changeset 5225 for WAeUP_SRP/trunk/skins/waeup_default/id_rename.py
- Timestamp:
- 18 Jun 2010, 17:29:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/id_rename.py
r2743 r5225 35 35 36 36 here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) 37 if pt == ' University':37 if pt == 'AcademicsFolder': 38 38 for faculty in old_ids: 39 39 students = context.students_catalog(faculty=faculty) … … 45 45 data['id'] = sid 46 46 context.students_catalog.modifyRecord(**data) 47 courses = context.courses_catalog(faculty=faculty)48 courses_ids = [c.code for c in courses]49 for cid in courses_ids:50 data['code'] = cid51 context.courses_catalogModify(**data)47 #courses = context.courses_catalog(faculty=faculty) 48 #courses_ids = [c.code for c in courses] 49 #for cid in courses_ids: 50 # data['code'] = cid 51 # context.courses_catalogModify(**data) 52 52 elif pt == 'Faculty': 53 53 for department in old_ids: … … 60 60 data['id'] = sid 61 61 context.students_catalog.modifyRecord(**data) 62 courses = context.courses_catalog(department=department)63 courses_ids = [c.code for c in courses]64 for cid in courses_ids:65 data['code'] = cid66 context.courses_catalogModify(**data)62 #courses = context.courses_catalog(department=department) 63 #courses_ids = [c.code for c in courses] 64 #for cid in courses_ids: 65 # data['code'] = cid 66 # context.courses_catalogModify(**data) 67 67 logger.info('%s finished renaming %s to %s' % (member,old_ids,new_ids)) 68 68
Note: See TracChangeset for help on using the changeset viewer.