Ignore:
Timestamp:
12 Jan 2014, 18:44:14 (11 years ago)
Author:
Henrik Bettermann
Message:

Flash message if student record is created.

File:
1 edited

Legend:

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

    r10845 r10895  
    550550            IWorkflowState(self.context).getState() == INITIALIZED:
    551551            IWorkflowInfo(self.context).fireTransition('start')
     552        if usertype == 'applicant' and self.context.state == 'created':
     553            msg = _(
     554                '\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                ' Then enter your new student credentials:' +
     559                ' user name= ${a}, password = ${b}.' +
     560                ' Change your password when you have logged in.',
     561                mapping = {
     562                    'a':self.context.student_id,
     563                    'b':self.context.application_number}
     564                )
     565            self.flash(msg)
    552566        return
    553567
Note: See TracChangeset for help on using the changeset viewer.