- Timestamp:
- 28 May 2012, 11:24:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r5532 r8538 83 83 'cleared_date': current,}) 84 84 wftool.doActionFor(info['student'],'clear_and_validate') 85 if clear_doc.firstname and clear_doc.lastname:86 if info['per_review_state'] != 'opened':87 wftool.doActionFor(info['per'],'open')88 per_doc = info['per'].getContent()89 firstname = clear_doc.firstname.replace('-',' - ')90 firstname = ' '.join([m.capitalize() for m in firstname.split()])91 firstname = firstname.replace(' - ','-')92 middlename = clear_doc.middlename.replace('-',' - ')93 middlename = ' '.join([m.capitalize() for m in middlename.split()])94 middlename = middlename.replace(' - ','-')95 lastname = clear_doc.lastname.replace('-',' - ')96 lastname = ' '.join([m.capitalize() for m in lastname.split()])97 lastname = lastname.replace(' - ','-')98 # we changed99 context.waeup_tool.updateRoleMappingsFor('waeup_student_subobject_wf',info['per'])100 per_doc.edit(mapping = {'firstname': firstname, 'middlename': middlename, 'lastname': lastname,})85 #if clear_doc.firstname and clear_doc.lastname: 86 # if info['per_review_state'] != 'opened': 87 # wftool.doActionFor(info['per'],'open') 88 # per_doc = info['per'].getContent() 89 # firstname = clear_doc.firstname.replace('-',' - ') 90 # firstname = ' '.join([m.capitalize() for m in firstname.split()]) 91 # firstname = firstname.replace(' - ','-') 92 # middlename = clear_doc.middlename.replace('-',' - ') 93 # middlename = ' '.join([m.capitalize() for m in middlename.split()]) 94 # middlename = middlename.replace(' - ','-') 95 # lastname = clear_doc.lastname.replace('-',' - ') 96 # lastname = ' '.join([m.capitalize() for m in lastname.split()]) 97 # lastname = lastname.replace(' - ','-') 98 # # we changed 99 # context.waeup_tool.updateRoleMappingsFor('waeup_student_subobject_wf',info['per']) 100 # per_doc.edit(mapping = {'firstname': firstname, 'middlename': middlename, 'lastname': lastname,}) 101 101 102 102 psm = "Clearance and eligibility record is validated and student is cleared!"
Note: See TracChangeset for help on using the changeset viewer.