Ignore:
Timestamp:
21 Dec 2015, 08:42:15 (9 years ago)
Author:
Henrik Bettermann
Message:

Add omit fields for affiliation programmes (needed by Uniben).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py

    r13277 r13551  
    4747    CBT_OMIT_MANAGE_FIELDS,
    4848    CBT_OMIT_EDIT_FIELDS,
     49    AFFIL_OMIT_DISPLAY_FIELDS,
     50    AFFIL_OMIT_PDF_FIELDS,
     51    AFFIL_OMIT_MANAGE_FIELDS,
     52    AFFIL_OMIT_EDIT_FIELDS,
    4953    PG_OMIT_DISPLAY_FIELDS,
    5054    PG_OMIT_PDF_FIELDS,
     
    102106            for field in CBT_OMIT_DISPLAY_FIELDS:
    103107                form_fields = form_fields.omit(field)
     108        elif self.target is not None and self.target.startswith('affil'):
     109            form_fields = grok.AutoFields(INigeriaUGApplicant)
     110            for field in AFFIL_OMIT_DISPLAY_FIELDS:
     111                form_fields = form_fields.omit(field)
    104112        elif self.target is not None and self.target.startswith('putme'):
    105113            form_fields = grok.AutoFields(INigeriaUGApplicant)
     
    151159            for field in CBT_OMIT_PDF_FIELDS:
    152160                form_fields = form_fields.omit(field)
     161        elif self.target is not None and self.target.startswith('affil'):
     162            form_fields = grok.AutoFields(INigeriaUGApplicant)
     163            for field in AFFIL_OMIT_PDF_FIELDS:
     164                form_fields = form_fields.omit(field)
    153165        elif self.target is not None and self.target.startswith('putme'):
    154166            form_fields = grok.AutoFields(INigeriaUGApplicant)
     
    199211            for field in CBT_OMIT_MANAGE_FIELDS:
    200212                form_fields = form_fields.omit(field)
     213        elif self.target is not None and self.target.startswith('affil'):
     214            form_fields = grok.AutoFields(INigeriaUGApplicant)
     215            for field in AFFIL_OMIT_MANAGE_FIELDS:
     216                form_fields = form_fields.omit(field)
    201217        elif self.target is not None and self.target.startswith('putme'):
    202218            form_fields = grok.AutoFields(INigeriaUGApplicant)
     
    232248            form_fields = grok.AutoFields(INigeriaUGApplicantEdit)
    233249            for field in CBT_OMIT_EDIT_FIELDS:
     250                form_fields = form_fields.omit(field)
     251        elif self.target is not None and self.target.startswith('affil'):
     252            form_fields = grok.AutoFields(INigeriaUGApplicantEdit)
     253            for field in AFFIL_OMIT_EDIT_FIELDS:
    234254                form_fields = form_fields.omit(field)
    235255        elif self.target is not None and self.target.startswith('putme'):
Note: See TracChangeset for help on using the changeset viewer.