Ignore:
Timestamp:
17 Nov 2007, 18:25:29 (17 years ago)
Author:
Henrik Bettermann
Message:

allow ClearanceOfficer? to edit student subobjects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/clearance_edit.py

    r2695 r2696  
    7979
    8080    if clear_doc.firstname and clear_doc.lastname:
    81         context.waeup_tool.updateRoleMappingsFor('waeup_studet_subobject_wf',info['per'])
    8281        if info['per_review_state'] != 'opened':
    8382            wftool.doActionFor(info['per'],'open')
     
    8584        firstname = clear_doc.firstname.replace('-',' - ')
    8685        firstname = ' '.join([m.capitalize() for m in firstname.split()])
    87         firstname = firstname.replace(' - ','-')   
     86        firstname = firstname.replace(' - ','-')
    8887        middlename = clear_doc.middlename.replace('-',' - ')
    8988        middlename = ' '.join([m.capitalize() for m in middlename.split()])
    90         middlename = middlename.replace(' - ','-')       
     89        middlename = middlename.replace(' - ','-')
    9190        lastname = clear_doc.lastname.replace('-',' - ')
    9291        lastname = ' '.join([m.capitalize() for m in lastname.split()])
    93         lastname = lastname.replace(' - ','-')   
     92        lastname = lastname.replace(' - ','-')
     93        # we changed
     94        context.waeup_tool.updateRoleMappingsFor('waeup_student_subobject_wf',info['per'])
    9495        per_doc.edit(mapping = {'firstname': firstname, 'middlename': middlename, 'lastname': lastname,})
    9596
Note: See TracChangeset for help on using the changeset viewer.