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

Update branch from trunk.

Location:
main/waeup.kofa/branches/0.2/src/waeup/kofa
Files:
5 edited

Legend:

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

    r10896 r10909  
    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/branches/0.2/src/waeup/kofa/applicants/tests/test_browser.py

    r10896 r10909  
    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,'
  • main/waeup.kofa/branches/0.2/src/waeup/kofa/browser/templates/staffsitelayout.pt

    r10163 r10909  
    126126          </div>
    127127          <div i18n:translate="">
    128             Copyright &copy; WAeUP Group 2008-2013
     128            Copyright &copy; WAeUP Group 2008-2014
    129129          </div>
    130130        </div>
  • main/waeup.kofa/branches/0.2/src/waeup/kofa/browser/templates/studentsitelayout.pt

    r10163 r10909  
    111111          </div>
    112112          <div i18n:translate="">
    113             Copyright &copy; WAeUP Group 2008-2013
     113            Copyright &copy; WAeUP Group 2008-2014
    114114          </div>
    115115        </div>
  • main/waeup.kofa/branches/0.2/src/waeup/kofa/students/payments.py

    r10449 r10909  
    171171        return self.context.student.depcode
    172172
     173    @property
     174    def email(self):
     175        "Email of payer"
     176        return self.context.student.email
     177
     178    @property
     179    def phone(self):
     180        "Phone number of payer"
     181        return self.context.student.phone
     182
     183    @property
     184    def current_mode(self):
     185        "Current study mode of payer"
     186        return self.context.student.current_mode
     187
     188    @property
     189    def current_level(self):
     190        "Current level of payer"
     191        return self.context.student.current_level
     192
    173193# Student online payments must be importable. So we might need a factory.
    174194class StudentOnlinePaymentFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.