- Timestamp:
- 14 Jan 2014, 08:48:01 (11 years ago)
- 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 551 551 IWorkflowInfo(self.context).fireTransition('start') 552 552 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') 553 556 msg = _( 554 557 '\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.' 558 563 ' Then enter your new student credentials:' + 559 564 ' user name= ${a}, password = ${b}.' + … … 561 566 mapping = { 562 567 'a':self.context.student_id, 563 'b':self.context.application_number} 568 'b':self.context.application_number, 569 'c':session, 570 'd':title} 564 571 ) 565 572 self.flash(msg) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r10895 r10908 575 575 self.assertTrue( 576 576 '<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) 579 580 self.assertTrue( 580 581 'Then enter your new student credentials: user name= my id,'
Note: See TracChangeset for help on using the changeset viewer.