Changeset 2119 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 18 Aug 2007, 17:23:25 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2114 r2119 19 19 20 20 import DateTime 21 import logging 22 logger = logging.getLogger('Skins.apply_pume') 23 21 24 current = DateTime.DateTime() 22 25 pr = context.portal_registration … … 55 58 submitted = True 56 59 if not create and pin != object['pin']: 60 logger.info('%s entered wrong pin %s' % (reg_no,pin)) 57 61 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 58 62 if slip: 59 63 mode = "view_slip" 64 logger.info('%s views application slip' % (reg_no)) 65 60 66 res,psm,ds = lt.renderLayout(layout_id= 'application', 61 67 schema_id= 'application', … … 101 107 mode = "view" 102 108 psm = "The form has already been submitted and you are not allowed to resubmit the data!" 109 logger.info('%s tried to resubmit application record' % (reg_no)) 103 110 res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application', 104 111 schema_id= 'application', … … 112 119 mode = "edit" 113 120 psm = "Please confirm Passport Photograph!" 121 logger.info('%s tried to submit without ticking confirmation check box' % (reg_no)) 114 122 else: 115 123 mode = "view" … … 118 126 data['status'] = "submitted" 119 127 context.applicants_catalog.modifyRecord(**data) 128 logger.info('%s modified and submitted application record' % (reg_no)) 120 129 res,psm_dummy,ds = lt.renderLayout(layout_id= 'application', 121 130 schema_id= 'application', … … 129 138 if submitted: 130 139 mode = "view" 140 logger.info('%s views application record' % (reg_no)) 131 141 else: 132 142 mode = "edit" 143 logger.info('%s edits application process' % (reg_no)) 133 144 psm = "" 134 145 #set_trace() … … 147 158 mode = "view" 148 159 psm = "The form has already been submitted and you are not allowed to modify the data!" 160 logger.info('%s tried to edit submitted application record' % (reg_no)) 149 161 res,psm_dummy,ds_dummy = lt.renderLayout(layout_id= 'application', 150 162 schema_id= 'application', … … 160 172 data['status'] = "edited" 161 173 context.applicants_catalog.modifyRecord(**data) 174 logger.info('%s modified application record' % (reg_no)) 162 175 163 176 -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_slip.pt
r2109 r2119 13 13 <br /> 14 14 <div tal:replace="structure rendered_main" /> 15 Please ensure that you come to the screening venus with a copy of this slip. 15 Please check for your screening venue at any of the UNIBEN entry gates or 16 at the Sports Complex and come to the screening venue with a copy of this slip. 16 17 </metal:block> 17 18 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.