Changeset 9982 for main/waeup.fceokene


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

Add left logo.

Customize admission text.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/browser/pdf.py

    r9950 r9982  
    3535    grok.name('ibadan_pdfcreator')
    3636
     37    # right (default) logo
    3738    header_logo_path = os.path.join(
    38         os.path.dirname(__file__), 'static', 'pdf_logo_2.jpg')
     39        os.path.dirname(__file__), 'static', 'pdf_logo_ibadan.jpg')
    3940
    40     logo_pos = [480, 740, 90]
     41    logo_pos = [520, 750, 60]
    4142
     43    # left logo
     44    header_logo_left_path = os.path.join(
     45        os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
     46
     47    logo_left_pos = [15, 750, 60]
     48
     49
     50
  • 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.