Changeset 5225


Ignore:
Timestamp:
18 Jun 2010, 17:29:56 (15 years ago)
Author:
Henrik Bettermann
Message:

courses_catalog need not to be updated, this is done by the event service.

Fix update of students_catalog after renaming of faculty ids.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/id_rename.py

    r2743 r5225  
    3535
    3636here.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST)
    37 if pt == 'University':
     37if pt == 'AcademicsFolder':
    3838    for faculty in old_ids:
    3939        students = context.students_catalog(faculty=faculty)
     
    4545            data['id'] = sid
    4646            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'] = cid
    51             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)
    5252elif pt == 'Faculty':
    5353    for department in old_ids:
     
    6060            data['id'] = sid
    6161            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'] = cid
    66             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)
    6767logger.info('%s finished renaming %s to %s' % (member,old_ids,new_ids))
    6868
Note: See TracChangeset for help on using the changeset viewer.