Changeset 1424 for WAeUP_SRP/trunk


Ignore:
Timestamp:
15 Feb 2007, 15:29:55 (18 years ago)
Author:
joachim
Message:

modify students_catalog when objects are edited

File:
1 edited

Legend:

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

    r1417 r1424  
    5858                                                  department = c_path[-3],
    5959                                                  )
     60    elif context.portal_type == "StudentApplication":
     61        entry_mode = ds.get('entry_mode')
     62        student_id = context.getStudentId()
     63        context.students_catalog.modifyRecord(id = student_id,
     64                                              entry_mode = entry_mode,
     65                                             )
     66    elif context.portal_type == "StudentClearance":
     67        matric_no = ds.get('matric_no')
     68        student_id = context.getStudentId()
     69        context.students_catalog.modifyRecord(id = student_id,
     70                                              matric_no = matric_no,
     71                                             )
    6072    elif context.portal_type in ("StudentPersonal",):
    6173        name = "%(firstname)s %(middlename)s %(lastname)s" % ds
    6274        name = name.strip()
    6375        name = name.replace('  ',' ')
     76        email = ds.get('email')
     77        phone = ds.get('phone')
    6478        student_id = context.getStudentId()
    6579        app_doc = context.application.getContent()
     
    7286        context.students_catalog.modifyRecord(id = student_id,
    7387                                              name = name,
     88                                              email = email,
     89                                              phone = phone,
    7490                                              sex = ds.get('sex'),
    7591                                             )
Note: See TracChangeset for help on using the changeset viewer.