Changeset 1141 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 28 Dec 2006, 10:59:02 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_pin_form.pt
r1028 r1141 2 2 portal_status_message options/psm; 3 3 data_storage options/ds; 4 jamb options/jamb/getContent|nothing;4 info options/info|nothing; 5 5 edition python:1;" 6 6 > … … 15 15 <metal:block fill-slot="main"> 16 16 <h3>Start Clearance! </h3> 17 <strong tal:condition="info/penalty"> 18 You are required to pay and obtain a receipt, the sum of Three Thousand Naira Only (N3,000.00) 19 as penalty for late clearance as your clearance ended on 22nd December 2006. 20 </strong> 17 21 <br /> 18 22 <div tal:replace="structure rendered_main" /> -
WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py
r1102 r1141 14 14 import logging 15 15 logger = logging.getLogger('Student.Clearance.Info') 16 from DateTime import DateTime 16 17 17 18 request = context.REQUEST … … 39 40 students_object = context.portal_url.getPortalObject().campus.students 40 41 student = getattr(students_object, student_id) 42 res = context.portal_catalog(portal_type='Student',id = student_id) 43 if len(res) == 0: 44 return None 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')) 41 48 info['id'] = student_id 42 49 info['student'] = student 43 50 info['review_state'] = wf.getInfoFor(student,'review_state',None) 44 #info['app'] = student.application45 #info['app_doc'] = student.application.getContent()51 info['app'] = student.application 52 info['app_doc'] = student.application.getContent() 46 53 info['clear'] = student.clearance 47 54 info['clear_doc'] = student.clearance.getContent() -
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r1108 r1141 10 10 logger = logging.getLogger('Student.Clearance.Start') 11 11 12 type_name = 'Student' 12 #type_name = 'Student' 13 #ti = context.portal_types[type_name] 14 #request.set('type_name',type_name) 15 #wf = context.portal_workflow 13 16 request=REQUEST 14 ti = context.portal_types[type_name]15 request.set('type_name',type_name)16 17 redirect = request.RESPONSE.redirect 17 wf = context.portal_workflow18 18 validate = REQUEST.has_key("cpsdocument_create_button") 19 lt = context.portal_layouts 20 #pr = context.portal_registration 19 21 20 lt = context.portal_layouts 21 pr = context.portal_registration 22 23 info = context.getStudentInfo() 22 info = context.getClearanceInfo() 24 23 if info is None: 25 24 member_id = str(context.portal_membership.getAuthenticatedMember()) … … 44 43 lastlayout = True, 45 44 ds = ds, 45 info = info, 46 46 ) 47 47 error = False … … 68 68 lastlayout = True, 69 69 ds = ds, 70 info = info, 70 71 ) 71 72 session.set("clicked","clicked")
Note: See TracChangeset for help on using the changeset viewer.