- Timestamp:
- 27 Jul 2017, 05:22:28 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py
r14721 r14732 23 23 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 24 24 from zope.formlib.textwidgets import BytesDisplayWidget 25 from waeup.kofa.interfaces import IExtFileStore, IKofaUtils 25 26 from waeup.kofa.applicants.interfaces import ( 26 27 IApplicant, IApplicantEdit, ISpecialApplicant) 27 28 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 28 29 ApplicantManageFormPage, ApplicantEditFormPage, 29 ApplicantsContainerPage )30 ApplicantsContainerPage, ApplicationFeePaymentAddPage) 30 31 from waeup.kofa.applicants.viewlets import ( 31 32 PaymentReceiptActionButton, PDFActionButton) … … 45 46 ) 46 47 48 from kofacustom.dspg.interfaces import MessageFactory as _ 49 47 50 UG_OMIT_EDIT_FIELDS = [ 48 51 value for value in UG_OMIT_EDIT_FIELDS … … 196 199 form_fields['reg_number'].for_display = True 197 200 return form_fields 201 202 class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage): 203 """ Page to add an online payment ticket 204 """ 205 206 @property 207 def custom_requirements(self): 208 store = getUtility(IExtFileStore) 209 if not store.getFileByContext(self.context, attr=u'passport.jpg'): 210 return _('Upload your passport photo before making payment.') 211 return ''
Note: See TracChangeset for help on using the changeset viewer.