Ignore:
Timestamp:
3 Jul 2014, 08:17:34 (10 years ago)
Author:
Henrik Bettermann
Message:

Requirements for adding application payment tickets customized.
Applicants must upload passport picture before adding payment tickets.

File:
1 edited

Legend:

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

    r10622 r11728  
    1919"""
    2020import grok
     21from zope.component import getUtility
     22from waeup.kofa.interfaces import IExtFileStore
    2123from waeup.kofa.applicants.browser import (
    22     ApplicantRegistrationPage, ApplicantsContainerPage)
     24    ApplicantRegistrationPage, ApplicantsContainerPage,
     25    ApplicationFeePaymentAddPage)
    2326from kofacustom.nigeria.applicants.browser import (
    2427    NigeriaApplicantDisplayFormPage,
     
    113116        return
    114117
     118class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage):
     119    """ Page to add an online payment ticket
     120    """
    115121
     122    @property
     123    def custom_requirements(self):
     124        store = getUtility(IExtFileStore)
     125        if not store.getFileByContext(self.context, attr=u'passport.jpg'):
     126            return _('Upload your passport photo before making payment.')
     127        return ''
     128
Note: See TracChangeset for help on using the changeset viewer.