Changeset 13500
- Timestamp:
- 27 Nov 2015, 04:49:34 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r13499 r13500 203 203 bedticket = student['accommodation'].get( 204 204 str(student.current_session), None) 205 if bedticket :205 if bedticket is not None and bedticket.bed is not None: 206 206 p_item = bedticket.bed_coordinates 207 207 if bedticket.bed.__parent__.maint_fee > 0: … … 211 211 amount = academic_session.maint_fee 212 212 else: 213 # Should not happen because this is already checked214 # in the browser module, but anyway ...215 213 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 216 p_item = trans(_(' no bed allocated'), portal_language)214 p_item = trans(_('No bed allocated.'), portal_language) 217 215 218 216 #elif category == 'hostel_application':
Note: See TracChangeset for help on using the changeset viewer.