Changeset 1983 for WAeUP_SRP/trunk/skins
- Timestamp:
- 4 Jul 2007, 07:32:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/ti_294_resolve.py
r1981 r1983 53 53 todelete.append((brain.id,level_object)) 54 54 rwrite("appended %s" % (brain.id)) 55 else: 56 registered_courses = brain.registered_courses 57 registered_courses.remove('') 58 logger.info('object not found, %s' % registered_courses) 59 # the following line is critical (modifying the catalog in a for brain in brains loop) 60 context.students_catalog.modifyRecord(id=brain.id,registered_courses=registered_courses) 55 61 logger.info('todelete %d' % (len(todelete))) 56 62 for brain_id,level_object in todelete: … … 69 75 logger.info('finished for %d of %d' % (count,total)) 70 76 return 77
Note: See TracChangeset for help on using the changeset viewer.