Changeset 14003


Ignore:
Timestamp:
2 Jul 2016, 04:56:31 (8 years ago)
Author:
Henrik Bettermann
Message:

Temporary solution for reopening application in Uniben. This revision has to be reverted when ase application is finished.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants
Files:
3 edited

Legend:

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

    r13291 r14003  
    2424    INigeriaApplicant,
    2525    INigeriaUGApplicantEdit, INigeriaPGApplicantEdit,
    26     IPUTMEApplicantEdit)
     26    IPUTMEApplicantEdit, IBankAccount)
    2727
    2828class NigeriaApplicant(Applicant):
    2929
    3030    grok.implements(INigeriaApplicant, INigeriaUGApplicantEdit,
    31         INigeriaPGApplicantEdit, IPUTMEApplicantEdit)
     31        INigeriaPGApplicantEdit, IPUTMEApplicantEdit, IBankAccount)
    3232    grok.provides(INigeriaApplicant)
    3333
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py

    r13945 r14003  
    2424from zope.formlib.textwidgets import BytesDisplayWidget
    2525from waeup.kofa.students.interfaces import IStudentsUtils
    26 from waeup.kofa.applicants.interfaces import (
    27     IApplicantRegisterUpdate, IApplicant, IApplicantEdit)
     26from waeup.kofa.applicants.interfaces import IApplicantRegisterUpdate
    2827from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
    2928    ApplicantManageFormPage, ApplicantEditFormPage,
     
    3938    INigeriaPGApplicantEdit, INigeriaUGApplicantEdit,
    4039    INigeriaApplicantOnlinePayment,IPUTMEApplicantEdit,
     40    IBankAccount,
    4141    UG_OMIT_DISPLAY_FIELDS,
    4242    UG_OMIT_PDF_FIELDS,
     
    254254                form_fields = form_fields.omit(field)
    255255        elif self.target is not None and self.target.startswith('ase'): # was putme
    256             form_fields = grok.AutoFields(IPUTMEApplicantEdit)
    257             for field in PUTME_OMIT_EDIT_FIELDS:
    258                 form_fields = form_fields.omit(field)
     256
     257
     258            # Temporary solution for reopening application in Uniben
     259            form_fields = grok.AutoFields(IBankAccount)
     260            #form_fields = grok.AutoFields(IPUTMEApplicantEdit)
     261            #for field in PUTME_OMIT_EDIT_FIELDS:
     262            #    form_fields = form_fields.omit(field)
     263            return form_fields
     264
     265
    259266        elif self.target is not None and self.target.startswith('pude'):
    260267            form_fields = grok.AutoFields(INigeriaUGApplicantEdit)
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py

    r13945 r14003  
    3232    validate_email,
    3333    SubjectSource,
    34     IKofaUtils)
     34    IKofaUtils,
     35    IKofaObject)
    3536from waeup.kofa.schema import FormattedDate, TextLineChoice
    3637from waeup.kofa.students.vocabularies import nats_vocab, GenderSource
     
    210211    'screening_date',)
    211212
    212 class INigeriaUGApplicant(IApplicantBaseData):
     213class IBankAccount(IKofaObject):
     214
     215    bank_name = schema.TextLine(
     216        title = _(u'Bank Name'),
     217        required = False,
     218        readonly = False,
     219        )
     220
     221    bank_account_name = schema.TextLine(
     222        title = _(u'Bank Account Name'),
     223        required = False,
     224        readonly = False,
     225        )
     226
     227    bank_account_number = schema.TextLine(
     228        title = _(u'Bank Account Number'),
     229        required = False,
     230        readonly = False,
     231        )
     232
     233class INigeriaUGApplicant(IApplicantBaseData, IBankAccount):
    213234    """An undergraduate applicant.
    214235
Note: See TracChangeset for help on using the changeset viewer.