Ignore:
Timestamp:
8 Aug 2016, 15:14:20 (8 years ago)
Author:
Henrik Bettermann
Message:

User other prefixes for Akoka applications.

File:
1 edited

Legend:

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

    r14047 r14060  
    101101            for field in PRE_OMIT_DISPLAY_FIELDS:
    102102                form_fields = form_fields.omit(field)
    103         elif self.target is not None and self.target.startswith('cbt'):
     103        elif self.target is not None and self.target.startswith('cbt'): #uniben
    104104            form_fields = grok.AutoFields(INigeriaUGApplicant)
    105105            for field in CBT_OMIT_DISPLAY_FIELDS:
    106106                form_fields = form_fields.omit(field)
    107         elif self.target is not None and self.target.startswith('af'):
     107        elif self.target is not None and self.target.startswith('akj'): # uniben
     108            form_fields = grok.AutoFields(INigeriaPGApplicant)
     109            for field in PRE_OMIT_DISPLAY_FIELDS:
     110                form_fields = form_fields.omit(field)
     111        elif self.target is not None and self.target.startswith('ak'): # uniben
    108112            form_fields = grok.AutoFields(INigeriaUGApplicant)
    109113            for field in AFFIL_OMIT_DISPLAY_FIELDS:
     
    154158            for field in PRE_OMIT_PDF_FIELDS:
    155159                form_fields = form_fields.omit(field)
    156         elif self.target is not None and self.target.startswith('cbt'):
     160        elif self.target is not None and self.target.startswith('cbt'): # uniben
    157161            form_fields = grok.AutoFields(INigeriaUGApplicant)
    158162            for field in CBT_OMIT_PDF_FIELDS:
    159163                form_fields = form_fields.omit(field)
    160         elif self.target is not None and self.target.startswith('af'):
     164        elif self.target is not None and self.target.startswith('ak'): # uniben
    161165            form_fields = grok.AutoFields(INigeriaUGApplicant)
    162166            for field in AFFIL_OMIT_PDF_FIELDS:
     167                form_fields = form_fields.omit(field)
     168        elif self.target is not None and self.target.startswith('akj'): # uniben
     169            form_fields = grok.AutoFields(INigeriaPGApplicant)
     170            for field in PRE_OMIT_PDF_FIELDS:
    163171                form_fields = form_fields.omit(field)
    164172        elif self.target is not None and self.target.startswith('ase'): # was putme
     
    206214            for field in PRE_OMIT_MANAGE_FIELDS:
    207215                form_fields = form_fields.omit(field)
    208         elif self.target is not None and self.target.startswith('cbt'):
     216        elif self.target is not None and self.target.startswith('cbt'): # uniben
    209217            form_fields = grok.AutoFields(INigeriaUGApplicant)
    210218            for field in CBT_OMIT_MANAGE_FIELDS:
    211219                form_fields = form_fields.omit(field)
    212         elif self.target is not None and self.target.startswith('af'):
     220        elif self.target is not None and self.target.startswith('akj'): # uniben
     221            form_fields = grok.AutoFields(INigeriaPGApplicant)
     222            for field in PRE_OMIT_MANAGE_FIELDS:
     223                form_fields = form_fields.omit(field)
     224        elif self.target is not None and self.target.startswith('ak'): # uniben
    213225            form_fields = grok.AutoFields(INigeriaUGApplicant)
    214226            for field in AFFIL_OMIT_MANAGE_FIELDS:
     
    244256            for field in PRE_OMIT_EDIT_FIELDS:
    245257                form_fields = form_fields.omit(field)
    246         elif self.target is not None and self.target.startswith('cbt'):
     258        elif self.target is not None and self.target.startswith('cbt'): # uniben
    247259            form_fields = grok.AutoFields(INigeriaUGApplicantEdit)
    248260            for field in CBT_OMIT_EDIT_FIELDS:
    249261                form_fields = form_fields.omit(field)
    250         elif self.target is not None and self.target.startswith('af'):
     262        elif self.target is not None and self.target.startswith('akj'): # uniben
     263            form_fields = grok.AutoFields(INigeriaPGApplicant)
     264            for field in PRE_OMIT_EDIT_FIELDS:
     265                form_fields = form_fields.omit(field)
     266        elif self.target is not None and self.target.startswith('ak'): # uniben
    251267            form_fields = grok.AutoFields(INigeriaUGApplicantEdit)
    252268            for field in AFFIL_OMIT_EDIT_FIELDS:
Note: See TracChangeset for help on using the changeset viewer.