Changeset 2914
- Timestamp:
- 10 Dec 2007, 21:50:51 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/__init__.py
r2305 r2914 87 87 "WAeUPDocument", 88 88 ) 89 ), 89 ), 90 90 ) 91 91 -
WAeUP_SRP/uniben/profiles/default/layouts/student_accommodation.xml
r2912 r2914 54 54 </widget> 55 55 <widget name="acco_maint_sc_pin" meta_type="Scratchcard Pin Widget"> 56 <property name="title"> Access Code</property>56 <property name="title">Hostel Maintenance PIN</property> 57 57 <property name="fields"> 58 58 <element value="acco_maint_sc_pin"/> 59 59 </property> 60 <property name="label"> Access Code</property>61 <property name="label_edit"> Access Code</property>60 <property name="label">Hostel Maintenance PIN</property> 61 <property name="label_edit">Hostel Maintenance PIN</property> 62 62 <property name="readonly_layout_modes"> 63 63 <element value="edit"/> … … 180 180 <row> 181 181 <cell name="acco_maint_sc_pin"/> 182 </row> 182 </row> 183 <row> 184 <cell name="acco_maint_pay_id"/> 185 </row> 183 186 <row> 184 187 <cell name="acco_maint_date"/> 185 188 </row> 189 186 190 </table> 187 191 </object> -
WAeUP_SRP/uniben/profiles/default/layouts/student_accommodation_fe.xml
r2912 r2914 52 52 </property> 53 53 <property name="hidden_readonly_layout_modes"/> 54 </widget> 54 </widget> 55 55 <widget name="acco_res_date" meta_type="DateTime Widget"> 56 56 <property name="title">Hostel Application Date</property> … … 145 145 <row> 146 146 <cell name="acco_maint_fee"/> 147 </row> 147 </row> 148 148 <row> 149 149 <cell name="acco_maint_date"/> -
WAeUP_SRP/uniben/waeup_custom/getAccommodationInfo.py
r2903 r2914 67 67 review_state = info['review_state'] = s_brain.review_state 68 68 69 info['session'] = session = context.getSessionId() 70 69 71 students_object = context.portal_url.getPortalObject().campus.students 70 72 student = getattr(students_object, student_id) … … 73 75 74 76 booking_allowed = False 75 if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',) :77 if review_state in ('cleared_and_validated','returning','school_fee_paid','courses_registered', 'courses_validated',) and s_brain.session == session[0]: 76 78 booking_allowed = True 77 79 if s_brain.matric_no: … … 87 89 info['acco'] = None 88 90 return info 89 info['session'] = session = context.getSessionId() 91 90 92 acco_id = 'accommodation_' + session[0] 91 93 acco = getattr(student,acco_id,None) … … 97 99 info['acco_doc'] = acco.getContent() 98 100 info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None) 99 info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid" 100 101 101 info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid" 102 103 102 104 d = {} 103 105 if review_state == "cleared_and_validated": -
WAeUP_SRP/uniben/waeup_custom/pay_interswitch.py
r2892 r2914 69 69 info['student_name'] = student_record.name 70 70 info['student_email'] = student_record.email 71 info['session_id'] = student_record.session 71 info['session_id'] = student_record.session # this holds only for new students 72 72 info['type'] = 'online' 73 73 info['status'] = 'started'
Note: See TracChangeset for help on using the changeset viewer.