Changeset 13503 for main/waeup.kwarapoly/trunk/src
- Timestamp:
- 27 Nov 2015, 04:50:33 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r13461 r13503 194 194 bedticket = student['accommodation'].get( 195 195 str(student.current_session), None) 196 if bedticket :196 if bedticket is not None and bedticket.bed is not None: 197 197 p_item = bedticket.bed_coordinates 198 198 if bedticket.bed.__parent__.maint_fee > 0: … … 202 202 amount = academic_session.maint_fee 203 203 else: 204 # Should not happen because this is already checked205 # in the browser module, but anyway ...206 204 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 207 p_item = trans(_(' no bed allocated'), portal_language)205 p_item = trans(_('No bed allocated.'), portal_language) 208 206 elif category == 'clearance': 209 207 amount = academic_session.clearance_fee
Note: See TracChangeset for help on using the changeset viewer.