Changeset 1156 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 30 Dec 2006, 12:36:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt
r1144 r1156 1 <metal:html tal:define="info context/get StudentInfo">1 <metal:html tal:define="info context/getClearanceInfo"> 2 2 <metal:body use-macro="here/main_template/macros/master"> 3 3 <metal:main fill-slot="main"> -
WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py
r1145 r1156 54 54 info['clear_doc'] = student.clearance.getContent() 55 55 info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None) 56 if info['clear_review_state'] == "clearance_requested": 57 info['penalty'] = info['penalty'] and\ 58 info['clear_doc'].entry_date.lessThan(DateTime('2006/12/30')) 59 course = getattr(student,'study_course',None) 60 if course: 61 cert_id = course.getContent().study_course 62 res = context.portal_catalog(portal_type = "Certificate", id = cert_id) 63 ci = {} 64 if len(res) > 0: 65 info['course'] = course 66 brain = res[0] 67 ci['study_course'] = brain.getId 68 ci['title'] = brain.Title 69 pl = brain.getPath().split('/') 70 ci['faculty'] = pl[-4] 71 ci['department'] = pl[-3] 72 info['course_doc'] = ci 73 else: 74 info['course'] = None 56 75 return info
Note: See TracChangeset for help on using the changeset viewer.