Changeset 13501 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 27 Nov 2015, 04:50:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13457 r13501 454 454 bedticket = student['accommodation'].get( 455 455 str(student.current_session), None) 456 if bedticket :456 if bedticket is not None and bedticket.bed is not None: 457 457 p_item = bedticket.bed_coordinates 458 458 if bedticket.bed.__parent__.maint_fee > 0: … … 462 462 amount = academic_session.maint_fee 463 463 else: 464 # Should not happen because this is already checked465 # in the browser module, but anyway ...466 464 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 467 p_item = trans(_(' no bed allocated'), portal_language)465 p_item = trans(_('No bed allocated.'), portal_language) 468 466 elif category == 'transcript': 469 467 amount = academic_session.transcript_fee
Note: See TracChangeset for help on using the changeset viewer.