- Timestamp:
- 17 Jan 2023, 17:46:37 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r17278 r17304 196 196 d['expired'] = hostels.expired 197 197 # Determine bed type 198 bt = 'all' 198 entry_session = student['studycourse'].entry_session 199 if entry_session == grok.getSite()['hostels'].accommodation_session: 200 bt = 'fr' 201 else: 202 bt = 're' 199 203 if student.sex == 'f': 200 204 sex = 'female' … … 202 206 sex = 'male' 203 207 special_handling = 'regular' 208 if student.faccode in ('FLW', 'FMS'): 209 special_handling = 'oyibu' 210 if student.faccode in ('FET', 'FES'): 211 special_handling = 'alero' 204 212 d['bt'] = u'%s_%s_%s' % (special_handling,sex,bt) 205 213 return d 214
Note: See TracChangeset for help on using the changeset viewer.