- Timestamp:
- 15 Dec 2013, 07:12:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py
r10844 r10847 23 23 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget 24 24 from zope.formlib.textwidgets import BytesDisplayWidget 25 from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit 25 from waeup.kofa.applicants.interfaces import ( 26 IApplicant, IApplicantEdit, ISpecialApplicant) 26 27 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 27 28 ApplicantManageFormPage, ApplicantEditFormPage, … … 74 75 def form_fields(self): 75 76 if self.context.special: 76 form_fields = grok.AutoFields(IApplicant).select( 77 'applicant_id', 'firstname', 'middlename', 'lastname', 78 'reg_number', 'date_of_birth', 'email', 'special_application') 79 return form_fields 77 return grok.AutoFields(ISpecialApplicant) 80 78 form_fields = grok.AutoFields(ICustomUGApplicant) 81 79 if self.context.is_nd: … … 130 128 def form_fields(self): 131 129 if self.context.special: 132 form_fields = grok.AutoFields(IApplicant).select( 133 'applicant_id', 'firstname', 'middlename', 'lastname', 134 'reg_number', 'date_of_birth', 'email', 'special_application', 135 'locked') 136 return form_fields 130 return grok.AutoFields(ISpecialApplicant) 137 131 form_fields = grok.AutoFields(ICustomUGApplicant) 138 132 if self.context.is_nd: … … 154 148 155 149 if self.context.special: 156 form_fields = grok.AutoFields(IApplicantEdit).select( 157 'applicant_id', 'firstname', 'middlename', 'lastname', 158 'reg_number', 'date_of_birth', 'email', 'special_application') 159 return form_fields 150 return grok.AutoFields(ISpecialApplicant) 160 151 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 161 152 if self.context.is_nd:
Note: See TracChangeset for help on using the changeset viewer.