- Timestamp:
- 23 Jun 2013, 20:01:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.imostate/src/waeup/imostate/applicants/browser.py
r10359 r10367 36 36 NigeriaApplicantManageFormPage, 37 37 NigeriaApplicantEditFormPage, 38 NigeriaPDFApplicationSlip) 38 NigeriaPDFApplicationSlip, 39 UG_OMIT_DISPLAY_FIELDS, 40 UG_OMIT_PDF_FIELDS, 41 UG_OMIT_MANAGE_FIELDS, 42 UG_OMIT_EDIT_FIELDS, 43 ) 39 44 40 45 from waeup.imostate.applicants.workflow import STARTED … … 91 96 def form_fields(self): 92 97 form_fields = grok.AutoFields(ICustomUGApplicant) 98 for field in UG_OMIT_DISPLAY_FIELDS: 99 form_fields = form_fields.omit(field) 93 100 if form_fields.get('perm_address', None): 94 101 form_fields['perm_address'].custom_widget = BytesDisplayWidget … … 116 123 def form_fields(self): 117 124 form_fields = grok.AutoFields(ICustomUGApplicant) 125 for field in UG_OMIT_PDF_FIELDS: 126 form_fields = form_fields.omit(field) 118 127 if not getattr(self.context, 'student_id'): 119 128 form_fields = form_fields.omit('student_id') … … 134 143 def form_fields(self): 135 144 form_fields = grok.AutoFields(ICustomUGApplicant) 145 for field in UG_OMIT_MANAGE_FIELDS: 146 form_fields = form_fields.omit(field) 136 147 form_fields['student_id'].for_display = True 137 148 form_fields['applicant_id'].for_display = True … … 179 190 def form_fields(self): 180 191 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 192 for field in UG_OMIT_EDIT_FIELDS: 193 form_fields = form_fields.omit(field) 181 194 form_fields['applicant_id'].for_display = True 182 195 form_fields['reg_number'].for_display = True
Note: See TracChangeset for help on using the changeset viewer.