- Timestamp:
- 24 Sep 2015, 07:35:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r13155 r13277 61 61 PUDE_OMIT_EDIT_FIELDS, 62 62 PUDE_OMIT_RESULT_SLIP_FIELDS, 63 PRE_OMIT_DISPLAY_FIELDS, 64 PRE_OMIT_PDF_FIELDS, 65 PRE_OMIT_MANAGE_FIELDS, 66 PRE_OMIT_EDIT_FIELDS, 63 67 ) 64 68 from kofacustom.nigeria.interfaces import MessageFactory as _ … … 90 94 for field in PG_OMIT_DISPLAY_FIELDS: 91 95 form_fields = form_fields.omit(field) 92 # Don't know what pre-degree studies are, seems to be pre-postgraduate. 93 # Many modifications are expected. Therefore, we need a dedicated 94 # elif statement (see also pages below) 95 elif self.target is not None and self.target.startswith('pre'): 96 form_fields = grok.AutoFields(INigeriaPGApplicant) 97 for field in PG_OMIT_DISPLAY_FIELDS: 96 elif self.target is not None and self.target.startswith('pre'): 97 form_fields = grok.AutoFields(INigeriaPGApplicant) 98 for field in PRE_OMIT_DISPLAY_FIELDS: 98 99 form_fields = form_fields.omit(field) 99 100 elif self.target is not None and self.target.startswith('cbt'): … … 144 145 elif self.target is not None and self.target.startswith('pre'): 145 146 form_fields = grok.AutoFields(INigeriaPGApplicant) 146 for field in P G_OMIT_PDF_FIELDS:147 for field in PRE_OMIT_PDF_FIELDS: 147 148 form_fields = form_fields.omit(field) 148 149 elif self.target is not None and self.target.startswith('cbt'): … … 192 193 elif self.target is not None and self.target.startswith('pre'): 193 194 form_fields = grok.AutoFields(INigeriaPGApplicant) 194 for field in P G_OMIT_MANAGE_FIELDS:195 for field in PRE_OMIT_MANAGE_FIELDS: 195 196 form_fields = form_fields.omit(field) 196 197 elif self.target is not None and self.target.startswith('cbt'): … … 226 227 elif self.target is not None and self.target.startswith('pre'): 227 228 form_fields = grok.AutoFields(INigeriaPGApplicantEdit) 228 for field in P G_OMIT_EDIT_FIELDS:229 for field in PRE_OMIT_EDIT_FIELDS: 229 230 form_fields = form_fields.omit(field) 230 231 elif self.target is not None and self.target.startswith('cbt'):
Note: See TracChangeset for help on using the changeset viewer.