- Timestamp:
- 25 Nov 2022, 11:54:59 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16939 r17176 2264 2264 p_combi = [p_combi,] 2265 2265 student = self.context.__parent__ 2266 students_utils = getUtility(IStudentsUtils) 2266 2267 # The hostel_application payment category is temporarily used 2267 2268 # by Uniben. 2268 if p_category in ('bed_allocation', 'hostel_application') and student[ 2269 'studycourse'].current_session != grok.getSite()[ 2270 'hostels'].accommodation_session: 2269 if p_category in ( 2270 'bed_allocation', 'hostel_application') and grok.getSite()[ 2271 'hostels'].accommodation_session - student[ 2272 'studycourse'].current_session > students_utils.ACCOMMODATION_SPAN: 2271 2273 self.flash( 2272 _('Your current session does not match' + \2273 ' accommodation session.'), type="danger")2274 _('Your current session does not allow ' + \ 2275 'to book accommodation.'), type="danger") 2274 2276 return 2275 2277 if 'maintenance' in p_category: … … 2279 2281 type="warning") 2280 2282 return 2281 students_utils = getUtility(IStudentsUtils)2282 2283 error, payment = students_utils.setPaymentDetails( 2283 2284 p_category, student, None, None, p_combi)
Note: See TracChangeset for help on using the changeset viewer.