Changeset 11606


Ignore:
Timestamp:
29 Apr 2014, 13:37:37 (11 years ago)
Author:
Henrik Bettermann
Message:

Label of NigeriaExportPDFClearanceSlipPage customized.

Location:
main/waeup.aaue/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/CHANGES.txt

    r11597 r11606  
    441.2dev (unreleased)
    55===================
     6
     7* Label of NigeriaExportPDFClearanceSlipPage customized.
    68
    79* constructMatricNumber customized. AAUE matric number construction scheme
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r11602 r11606  
    3434    NigeriaOnlinePaymentAddFormPage,
    3535    NigeriaExportPDFPaymentSlipPage,
    36     NigeriaExportPDFCourseRegistrationSlipPage
     36    NigeriaExportPDFCourseRegistrationSlipPage,
     37    NigeriaExportPDFClearanceSlipPage,
    3738    )
    3839from waeup.aaue.students.interfaces import (
     
    190191            + ' %s' % self.context.display_fullname
    191192
     193class CustomExportPDFClearanceSlipPage(NigeriaExportPDFClearanceSlipPage):
     194    """Deliver a PDF slip of the context.
     195    """
     196
     197    @property
     198    def label(self):
     199        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     200        return translate(_('Clearance Slip\n'),
     201            'waeup.kofa', target_language=portal_language) \
     202            + ' %s' % self.context.display_fullname
     203
    192204class StudentGetMatricNumberPage(UtilityView, grok.View):
    193205    """ Construct and set the matriculation number.
Note: See TracChangeset for help on using the changeset viewer.