Changeset 2696 for WAeUP_SRP/base/skins/waeup_student/clearance_edit.py
- Timestamp:
- 17 Nov 2007, 18:25:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/clearance_edit.py
r2695 r2696 79 79 80 80 if clear_doc.firstname and clear_doc.lastname: 81 context.waeup_tool.updateRoleMappingsFor('waeup_studet_subobject_wf',info['per'])82 81 if info['per_review_state'] != 'opened': 83 82 wftool.doActionFor(info['per'],'open') … … 85 84 firstname = clear_doc.firstname.replace('-',' - ') 86 85 firstname = ' '.join([m.capitalize() for m in firstname.split()]) 87 firstname = firstname.replace(' - ','-') 86 firstname = firstname.replace(' - ','-') 88 87 middlename = clear_doc.middlename.replace('-',' - ') 89 88 middlename = ' '.join([m.capitalize() for m in middlename.split()]) 90 middlename = middlename.replace(' - ','-') 89 middlename = middlename.replace(' - ','-') 91 90 lastname = clear_doc.lastname.replace('-',' - ') 92 91 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']) 94 95 per_doc.edit(mapping = {'firstname': firstname, 'middlename': middlename, 'lastname': lastname,}) 95 96
Note: See TracChangeset for help on using the changeset viewer.