Changeset 10908 for main


Ignore:
Timestamp:
14 Jan 2014, 08:48:01 (11 years ago)
Author:
Henrik Bettermann
Message:

Add more information to congratulations message.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r10895 r10908  
    551551            IWorkflowInfo(self.context).fireTransition('start')
    552552        if usertype == 'applicant' and self.context.state == 'created':
     553            session = '%s/%s' % (self.context.__parent__.year,
     554                                 self.context.__parent__.year+1)
     555            title = getattr(grok.getSite()['configuration'], 'name', u'Sample University')
    553556            msg = _(
    554557                '\n <strong>Congratulations!</strong>' +
    555                 ' You have been provisionally admitted' +
    556                 ' and your student record has been created for you.' +
    557                 ' Logout again and proceed to the login page of the portal.' +
     558                ' You have been provisionally admitted into the' +
     559                ' ${c} Academic Session of ${d}.'
     560                ' Your student record has been created for you.' +
     561                ' Please, logout again and proceed to the' +
     562                ' login page of the portal.'
    558563                ' Then enter your new student credentials:' +
    559564                ' user name= ${a}, password = ${b}.' +
     
    561566                mapping = {
    562567                    'a':self.context.student_id,
    563                     'b':self.context.application_number}
     568                    'b':self.context.application_number,
     569                    'c':session,
     570                    'd':title}
    564571                )
    565572            self.flash(msg)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r10895 r10908  
    575575        self.assertTrue(
    576576            '<strong>Congratulations!</strong> You have been provisionally'
    577             ' admitted and your student record has been created for you.'
    578             in self.browser.contents)
     577            ' admitted into the %s/%s Academic Session of'
     578            ' Sample University. Your student record has been created for you.'
     579            % (session_1, session_1 + 1) in self.browser.contents)
    579580        self.assertTrue(
    580581            'Then enter your new student credentials: user name= my id,'
Note: See TracChangeset for help on using the changeset viewer.