Ignore:
Timestamp:
9 Nov 2011, 15:26:49 (13 years ago)
Author:
Henrik Bettermann
Message:

An existing HOS code can only be used if students' current session is equal to accommodation session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7060 r7061  
    12361236            self.redirect(self.url(self.context))
    12371237            return
    1238         if str(grok.getSite()[
    1239                 'configuration'].accommodation_session) in self.context.keys():
     1238        if student['studycourse'].current_session != acc_details['booking_session']:
     1239            self.flash(
     1240                'Your current session does not match accommodation session.')
     1241            self.redirect(self.url(self.context))
     1242            return
     1243        if str(acc_details['booking_session']) in self.context.keys():
    12401244            self.flash('You already booked a bed space in current accommodation session.')
    12411245            self.redirect(self.url(self.context))
Note: See TracChangeset for help on using the changeset viewer.