Ignore:
Timestamp:
22 Feb 2013, 17:51:35 (12 years ago)
Author:
Henrik Bettermann
Message:

Add left logo.

Customize admission text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r9953 r9982  
    2626from waeup.fceokene.interfaces import MessageFactory as _
    2727from waeup.kofa.browser.interfaces import IPDFCreator
     28from waeup.kofa.students.utils import trans
    2829
    2930class CustomStudentsUtils(NigeriaStudentsUtils):
     
    293294        return getUtility(IPDFCreator)
    294295
     296    def _admissionText(self, student, portal_language):
     297        mode = getattr(student, 'current_mode', None)
     298        if mode and mode.startswith('ug'):
     299            text = trans(_(
     300                'With reference to your application for admission into Bachelor Degree '
     301                'Programme of the University of Ibadan, this is to inform you that you have '
     302                'been provisionally admitted to pursue a full-time Bachelor of Arts in '
     303                'Education Degree Programme as follows:'),
     304                portal_language)
     305        else:
     306            inst_name = grok.getSite()['configuration'].name
     307            text = trans(_(
     308                'This is to inform you that you have been provisionally'
     309                ' admitted into ${a} as follows:', mapping = {'a': inst_name}),
     310                portal_language)
     311        return text
     312
    295313    # FCEOkene prefix
    296314    STUDENT_ID_PREFIX = u'K'
Note: See TracChangeset for help on using the changeset viewer.