Changeset 10134 for main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Timestamp:
- 2 May 2013, 11:34:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py
r10132 r10134 24 24 from zope.formlib.textwidgets import BytesDisplayWidget 25 25 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 26 ApplicantManageFormPage, ApplicantEditFormPage) 26 ApplicantManageFormPage, ApplicantEditFormPage, 27 ApplicantsContainerPage) 27 28 from waeup.kofa.applicants.viewlets import ( 28 29 PaymentReceiptActionButton, PDFActionButton) … … 41 42 ND_OMIT_EDIT_FIELDS 42 43 ) 44 45 class CustomApplicantsContainerPage(ApplicantsContainerPage): 46 """The standard view for regular applicant containers. 47 """ 48 49 @property 50 def form_fields(self): 51 form_fields = super(CustomApplicantsContainerPage, self).form_fields 52 if self.request.principal.id == 'zope.anybody': 53 return form_fields.omit('application_fee') 54 return form_fields 43 55 44 56 class CustomApplicantDisplayFormPage(ApplicantDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.