Changeset 1302
- Timestamp:
- 15 Jan 2007, 12:19:17 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt
r1292 r1302 3 3 tal:define="info_acco context/getAccommodationInfo; 4 4 info_app context/getApplicationInfo"> 5 <span tal:condition=" not: info_acco">5 <span tal:condition="python: not info_acco or not info_acco['acco']"> 6 6 <metal:block use-macro="here/error_not_found/macros/not_found" /> 7 7 </span> 8 <span tal:condition=" info_acco">8 <span tal:condition="python: info_acco and info_acco['acco']"> 9 9 <h3>Hostel Allocation Slip (and Maintenance Receipt)</h3> 10 10 <br /> -
WAeUP_SRP/trunk/skins/waeup_student/accommodation_view.pt
r1299 r1302 2 2 <metal:main fill-slot="main" 3 3 tal:define="info context/getAccommodationInfo"> 4 <span tal:condition=" not: info">4 <span tal:condition="python: not info or not info['acco']"> 5 5 <metal:block use-macro="here/error_not_found/macros/not_found" /> 6 6 </span> 7 <span tal:condition=" info">7 <span tal:condition="python: info and info['acco']"> 8 8 <div style="text-align: right"> 9 9 <a href="" target="slip" tal:attributes="href string:accommodation_slip" -
WAeUP_SRP/trunk/skins/waeup_student/getAccommodationInfo.py
r1300 r1302 84 84 acco_id = 'accommodation_2006' 85 85 acco = getattr(student,acco_id,None) 86 if acco == None:87 logger.info('"%s","tried to access non-existing acco object"' % (member_id))88 return None89 90 86 info['acco'] = acco 91 87 info['acco_id'] = acco_id
Note: See TracChangeset for help on using the changeset viewer.