Changeset 1359 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 26 Jan 2007, 09:00:48 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py
r1320 r1359 39 39 logger.info('"%s","not found in students_catalog"') 40 40 return None 41 41 42 42 ekehuan_certificates = ('BARTAPG', 43 43 'BARTAPM', … … 66 66 67 67 students_object = context.portal_url.getPortalObject().campus.students 68 res = context.results_import(matric_no = s_brain.matric_no)69 68 student = getattr(students_object, student_id) 70 69 info['id'] = student_id … … 72 71 review_state = info['review_state'] = wf.getInfoFor(student,'review_state',None) 73 72 booking_allowed = False 74 if review_state in ('returning','school_fee_paid','courses_registered', 'courses_validated',): 73 if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',): 74 booking_allowed = True 75 75 res = context.results_import(matric_no = s_brain.matric_no) 76 76 if res: 77 77 booking_allowed = res[0].Verdict in ("SUCCESSFUL STUDENT", 78 78 "STUDENT WITH CARRYOVER COURSES",) 79 elif review_state in ('cleared_and_validated',):80 booking_allowed = True81 79 info['booking_allowed'] = booking_allowed 82 80 if not booking_allowed: -
WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py
r1320 r1359 55 55 if res: 56 56 info['review_state'] = res[0].review_state 57 res = context.results_import(matric_no = st_brain.matric_no) 58 if res: 59 info['session'] = True 60 else: 61 info['session'] = False 62 57 63 info['id'] = student_id 58 64 items = [] -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r1295 r1359 41 41 42 42 </tr> 43 <tr tal:condition=" python:info['review_state'] == 'returning'">43 <tr tal:condition="info/session"> 44 44 <td> 45 45 <a href="edit" tal:attributes="href string:session_results_view"> … … 85 85 </tr> 86 86 </span> 87 <tr tal:condition=" python:info['review_state'] == 'returning'">87 <tr tal:condition="info/session"> 88 88 <td> 89 89 <a href="edit" tal:attributes="href string:session_results_view">
Note: See TracChangeset for help on using the changeset viewer.