Changeset 9481 for main/waeup.fceokene/trunk/src
- Timestamp:
- 31 Oct 2012, 08:11:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py
r9463 r9481 35 35 ) 36 36 from waeup.fceokene.applicants.interfaces import ( 37 ICustomUGApplicant, 37 ICustomUGApplicant, ICustomUGApplicantEdit, 38 38 BEC_OMIT_DISPLAY_FIELDS, 39 39 BEC_OMIT_PDF_FIELDS, … … 106 106 form_fields = form_fields.omit(field) 107 107 else: 108 form_fields = grok.AutoFields(ICustomUGApplicant)109 108 for field in UG_OMIT_MANAGE_FIELDS: 110 109 form_fields = form_fields.omit(field) … … 120 119 def form_fields(self): 121 120 target = getattr(self.context.__parent__, 'prefix', None) 122 form_fields = grok.AutoFields(ICustomUGApplicant )121 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 123 122 if target is not None and target.startswith('bec'): 124 123 for field in BEC_OMIT_EDIT_FIELDS: 125 124 form_fields = form_fields.omit(field) 126 125 else: 127 form_fields = grok.AutoFields(ICustomUGApplicantEdit)128 126 for field in UG_OMIT_EDIT_FIELDS: 129 127 form_fields = form_fields.omit(field)
Note: See TracChangeset for help on using the changeset viewer.