Changeset 1060 for WAeUP_SRP/trunk


Ignore:
Timestamp:
14 Dec 2006, 12:48:49 (18 years ago)
Author:
joachim
Message:

make changes to name and sex in personal-data also in application

File:
1 edited

Legend:

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

    r1057 r1060  
    5858                                                  )
    5959    elif context.portal_type in ("StudentPersonal",):
    60         name = "%(firstname) %(middlename)s %(lastname)s" % ds
     60        name = "%(firstname)s %(middlename)s %(lastname)s" % ds
    6161        student_id = context.getStudentId()
     62        app_doc = context.application.getContent()
     63        jamb_sex = 'M'
     64        if ds.get('sex'):
     65            jamb_sex = 'F'
     66        app_doc.edit(mapping={'jamb_lastname': name,
     67                              'jamb_sex': jamb_sex
     68                              })
    6269        context.students_catalog.modifyRecord(id = student_id,
    6370                                              name = name,
Note: See TracChangeset for help on using the changeset viewer.