Ignore:
Timestamp:
2 Nov 2016, 17:00:57 (8 years ago)
Author:
Henrik Bettermann
Message:

Raise error message if TicketError? occurs.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po

    r14229 r14252  
    138138msgstr "<b>Units: ${a}</b>"
    139139
    140 msgid "Course ${a} cannot be registered."
    141 msgstr ""
    142 "Course ${a} cannot be registered. You have to pay for the 2nd semester first."
    143 
    144140#: school_fee_1
    145141msgid "Initial School Fee"
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14249 r14252  
    191191        # schoolfee has not yet been fully paid.
    192192        if course.semester == 2 and not self._schoolfeePaymentMade():
    193             raise TicketError
     193            raise TicketError(
     194                _('%s is a 2nd semester course which can only be added '
     195                  'if school fees have been fully paid.' % course.code))
    194196        ticket.code = course.code
    195197        ticket.title = course.title
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r14248 r14252  
    816816        self.browser.getControl("Add course ticket").click()
    817817        self.assertTrue(
    818             'Course COURSE1 cannot be registered. '
    819             'You have to pay for the 2nd semester first.'
     818            'COURSE1 is a 2nd semester course which can only '
     819            'be added if school fees have been fully paid.'
    820820            in self.browser.contents)
    821821        # 2nd instalment has to be paid first
Note: See TracChangeset for help on using the changeset viewer.