- Timestamp:
- 20 Dec 2006, 21:42:57 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1101 r1106 1 ## Script (Python) "clearance_edit"2 ##bind container=container3 ##bind context=context4 ##bind namespace=5 ##bind script=script6 ##bind subpath=traverse_subpath7 ##parameters=REQUEST, acknowledge=None8 ##title=9 1 # $Id$ 10 2 """ … … 116 108 missing = False 117 109 for scan in required_scans: 118 if not hasattr(clear_doc,scan):110 if not getattr(clear_doc,scan): 119 111 missing = True 120 112 break 121 113 if not missing: 122 if not hasattr(clear_doc,"age_dec") and\123 not hasattr(clear_doc,"birth_certificate"):114 if not getattr(clear_doc,"age_dec") and\ 115 not getattr(clear_doc,"birth_certificate"): 124 116 missing = True 125 117 if missing: 126 118 logger.info('"%s","requested clearance with documents missing"' % (student_id)) 127 psm = "You have not uploaded all necessary documents to request clearance "119 psm = "You have not uploaded all necessary documents to request clearance!" 128 120 else: 129 121 logger.info('"%s","requested clearance"' % (student_id)) … … 161 153 url = clear.absolute_url() + action + '?' + urlencode(args) 162 154 REQUEST.RESPONSE.redirect(url) 155
Note: See TracChangeset for help on using the changeset viewer.