Changeset 4007 for WAeUP_SRP/trunk/skins/waeup_futminna
- Timestamp:
- 10 Mar 2009, 06:03:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_futminna/getAccommodationInfo.py
r4004 r4007 56 56 info['student'] = student 57 57 58 # do not change these settings! 59 58 60 booking_allowed = False 61 info['booking_disabled'] = False 59 62 60 63 # customize from here … … 78 81 return info 79 82 80 acco_id = 'accommodation_' + session[0]81 acco = getattr(student,acco_id,None)82 info['acco'] = acco83 info['acco_id'] = acco_id84 85 info['maintenance_paid'] = False86 if acco is not None:87 info['acco_doc'] = acco.getContent()88 info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None)89 info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid"90 elif booking_disabled:91 info['booking_allowed'] = False92 93 83 d = {} 94 84 d['sex'] = 'male' … … 101 91 info['student_status'] = student_status 102 92 93 # customize end 94 95 acco_id = 'accommodation_' + session[0] 96 acco = getattr(student,acco_id,None) 97 info['acco'] = acco 98 info['acco_id'] = acco_id 99 info['maintenance_paid'] = False 100 if acco is not None: 101 info['acco_doc'] = acco.getContent() 102 info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None) 103 info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid" 104 elif booking_disabled: 105 info['booking_allowed'] = False 106 info['booking_disabled'] = True 107 logger.info('%s: %s eligible but booking disabled' % (student_id,student_status)) 108 103 109 return info
Note: See TracChangeset for help on using the changeset viewer.