Ignore:
Timestamp:
27 Nov 2024, 00:30:20 (7 weeks ago)
Author:
Henrik Bettermann
Message:

Implement African Institute of management and Leadership application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r17597 r17964  
    5454    IPUTMEApplicantEdit,
    5555    ITranscriptApplicant,
    56     IFrenchApplicant)
     56    IFrenchApplicant,
     57    IAfrimalApplicant)
    5758from waeup.kofa.applicants.workflow import ADMITTED, PAID, STARTED
    5859from kofacustom.nigeria.applicants.interfaces import (
     
    298299                form_fields = form_fields.omit(field)
    299300            return form_fields
     301        if self.target is not None and self.target == 'afrimal':
     302            form_fields = grok.AutoFields(IAfrimalApplicant)
     303            for field in REGISTRATION_OMIT_DISPLAY_FIELDS:
     304                form_fields = form_fields.omit(field)
     305            return form_fields
    300306        if self.target == 'ictwk':
    301307            form_fields = grok.AutoFields(IUnibenRegistration)
     
    505511                form_fields = form_fields.omit(field)
    506512            return form_fields
     513        if self.target is not None and self.target == 'afrimal':
     514            form_fields = grok.AutoFields(IAfrimalApplicant)
     515            for field in REGISTRATION_OMIT_MANAGE_FIELDS:
     516                form_fields = form_fields.omit(field)
     517            return form_fields
    507518        if self.target is not None and self.target.startswith('pg'):
    508519            form_fields = grok.AutoFields(ICustomPGApplicant)
     
    627638        if self.target is not None and self.target == 'flc':
    628639            form_fields = grok.AutoFields(IFrenchApplicant)
     640            for field in REGISTRATION_OMIT_EDIT_FIELDS:
     641                form_fields = form_fields.omit(field)
     642            return form_fields
     643        if self.target is not None and self.target == 'afrimal':
     644            form_fields = grok.AutoFields(IAfrimalApplicant)
    629645            for field in REGISTRATION_OMIT_EDIT_FIELDS:
    630646                form_fields = form_fields.omit(field)
     
    821837        elif self.target is not None and self.target == 'flc':
    822838            form_fields = grok.AutoFields(IFrenchApplicant)
     839            for field in REGISTRATION_OMIT_PDF_FIELDS:
     840                form_fields = form_fields.omit(field)
     841        elif self.target is not None and self.target == 'afrimal':
     842            form_fields = grok.AutoFields(IAfrimalApplicant)
    823843            for field in REGISTRATION_OMIT_PDF_FIELDS:
    824844                form_fields = form_fields.omit(field)
Note: See TracChangeset for help on using the changeset viewer.