Changeset 9424 for main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
- Timestamp:
- 26 Oct 2012, 17:17:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9423 r9424 1342 1342 current_session = str(student['studycourse'].current_session) 1343 1343 if not student['accommodation'].has_key(current_session): 1344 self.flash(_('You have not yet booked a bed.'))1344 self.flash(_('You have not yet booked accommodation.')) 1345 1345 self.redirect(self.url(self.context)) 1346 1346 return … … 1589 1589 # If bed space has been manually allocated use this bed 1590 1590 bed = [entry for entry in entries][0] 1591 # Safety belt for paranoids: Does this bed really exist on portal? 1592 # XXX: Can be remove if nobody complains. 1593 if bed.__parent__.__parent__ is None: 1594 self.flash(_('System error: Please contact the adminsitrator.')) 1595 return 1591 1596 else: 1592 1597 # else search for other available beds … … 1598 1603 students_utils = getUtility(IStudentsUtils) 1599 1604 bed = students_utils.selectBed(available_beds) 1605 # Safety belt for paranoids: Does this bed really exist in portal? 1606 # XXX: Can be remove if nobody complains. 1607 if bed.__parent__.__parent__ is None: 1608 self.flash(_('System error: Please contact the adminsitrator.')) 1609 return 1600 1610 bed.bookBed(student.student_id) 1601 1611 else:
Note: See TracChangeset for help on using the changeset viewer.