Changeset 10679 for main/waeup.kwarapoly


Ignore:
Timestamp:
1 Nov 2013, 06:46:11 (11 years ago)
Author:
Henrik Bettermann
Message:

Only hnd_ft and nd_ft students are being forced to book accommodation.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py

    r10675 r10679  
    7676    def setUp(self):
    7777        super(StudentUITests, self).setUp()
    78 
     78        self.certificate.study_mode = 'hnd_ft'
    7979        bedticket = BedTicket()
    8080        bedticket.booking_session = 2004
     
    104104        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    105105        self.browser.getControl("Create ticket").click()
    106 
    107106        self.assertMatches('...Book and pay for accommodation first...',
    108107                           self.browser.contents)
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r10675 r10679  
    196196                academic_session = self._getSessionConfiguration(p_session)
    197197                if academic_session == None:
    198                     return _(u'Session configuration object is not available.'), None
    199             if student.state == CLEARED:
     198                    return _(u'Session configuration object '
     199                              'is not available.'), None
     200            if student.state == CLEARED and student.current_mode in (
     201                                                            'hnd_ft', 'nd_ft'):
    200202                # Fresh students must have booked and paid for accommodation.
    201203                if self._bedAvailable(student):
Note: See TracChangeset for help on using the changeset viewer.