Changeset 2699 for WAeUP_SRP/base
- Timestamp:
- 17 Nov 2007, 20:11:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2695 r2699 99 99 wf_def.updateRoleMappingsFor(ob) 100 100 ###) 101 101 102 102 security.declareProtected(ModifyPortalContent,'openLog') ###( 103 103 def openLog(self,name): … … 1399 1399 #import pdb;pdb.set_trace() 1400 1400 reg_no = mapping.get('reg_no') 1401 try: 1402 self.applicants_catalog.modifyRecord(**mapping) 1403 except KeyError: 1401 res = self.applicants_catalog(reg_no = reg_no) 1402 if len(res): 1403 if res[0].status == 'created': 1404 return '', "student object with id %s for %s already created, status not changed" % (res[0].student_id, reg_no) 1405 else: 1406 self.applicants_catalog.modifyRecord(**mapping) 1407 return reg_no,'' 1408 else: 1404 1409 return '', "applicant record with reg_no %s does not exist" % reg_no 1405 return reg_no,''1410 1406 1411 ###) 1407 1412
Note: See TracChangeset for help on using the changeset viewer.