Changeset 1144 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 28 Dec 2006, 20:48:11 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_pin_form.pt
r1143 r1144 16 16 <h3>Start Clearance! </h3> 17 17 <br /> 18 <strong tal:condition="info/penalty"> 18 <div tal:replace="structure rendered_main" /> 19 20 <br /> 21 <font color="red"><strong tal:condition="info/penalty"> 19 22 You are required to pay and obtain a receipt, the sum of Three Thousand Naira Only (N3,000.00) 20 23 as penalty for late clearance as your clearance ended on 22nd December 2006. 21 </strong> 22 <br /> 23 <div tal:replace="structure rendered_main" /> 24 <br /> 25 <font color="red">Processing your request may take a while. Please do not press the 'Start' button twice!</font> 26 <br /> 24 </strong></font> 25 27 26 </metal:block> 28 27 <metal:block fill-slot="sub"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt
r1096 r1144 6 6 </span> 7 7 <span tal:condition="info"> 8 <div style="text-align: right" tal:condition="info/penalty"> 9 <strong>Late Clearance!</strong></div> 8 10 9 11 <h3>Clearance/Eligibility Slip</h3> -
WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py
r1141 r1144 44 44 return None 45 45 creation_date = DateTime(res[0].CreationDate) 46 info['penalty'] = creation_date.lessThan(DateTime('2006/12/ 10'))\47 and DateTime().greaterThan(DateTime('2006/12/ 30'))46 info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\ 47 and DateTime().greaterThan(DateTime('2006/12/24')) 48 48 info['id'] = student_id 49 49 info['student'] = student -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1132 r1144 22 22 import logging 23 23 logger = logging.getLogger('Student.Info') 24 25 from DateTime import DateTime 24 26 25 27 info = {} … … 61 63 ##brain = res[-1] 62 64 ##student = brain.getObject() 65 66 creation_date = DateTime(student.creation_date) 67 info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\ 68 and DateTime().greaterThan(DateTime('2006/12/24')) 69 63 70 info['review_state'] = wf.getInfoFor(student,'review_state',None) 64 71 info['student'] = student … … 150 157 items.append(row) 151 158 info['items'] = items 159 152 160 request.set('student_id',student_id) 153 161 request.set('student_url',info['url']) -
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r1141 r1144 13 13 #ti = context.portal_types[type_name] 14 14 #request.set('type_name',type_name) 15 #wf = context.portal_workflow15 wf = context.portal_workflow 16 16 request=REQUEST 17 17 redirect = request.RESPONSE.redirect
Note: See TracChangeset for help on using the changeset viewer.