Changeset 1983 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
4 Jul 2007, 07:32:36 (17 years ago)
Author:
Henrik Bettermann
Message:

see comment in ticket #294

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/ti_294_resolve.py

    r1981 r1983  
    5353        todelete.append((brain.id,level_object))
    5454        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)
    5561logger.info('todelete %d' % (len(todelete)))
    5662for brain_id,level_object in todelete:
     
    6975logger.info('finished for %d of %d' % (count,total))
    7076return
     77
Note: See TracChangeset for help on using the changeset viewer.