- Timestamp:
- 17 Mar 2022, 07:55:49 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r16882 r16892 162 162 payment.p_combi = combi 163 163 return None, payment 164 165 def getAccommodationDetails(self, student): 166 """Determine the accommodation data of a student. 167 """ 168 d = {} 169 d['error'] = u'' 170 hostels = grok.getSite()['hostels'] 171 d['booking_session'] = hostels.accommodation_session 172 d['allowed_states'] = hostels.accommodation_states 173 d['startdate'] = hostels.startdate 174 d['enddate'] = hostels.enddate 175 d['expired'] = hostels.expired 176 # Determine bed type 177 bt = 'all' 178 if student.sex == 'f': 179 sex = 'female' 180 else: 181 sex = 'male' 182 special_handling = 'regular' 183 d['bt'] = u'%s_%s_%s' % (special_handling,sex,bt) 184 return d
Note: See TracChangeset for help on using the changeset viewer.