Changeset 14003 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Timestamp:
- 2 Jul 2016, 04:56:31 (8 years ago)
- 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 24 24 INigeriaApplicant, 25 25 INigeriaUGApplicantEdit, INigeriaPGApplicantEdit, 26 IPUTMEApplicantEdit )26 IPUTMEApplicantEdit, IBankAccount) 27 27 28 28 class NigeriaApplicant(Applicant): 29 29 30 30 grok.implements(INigeriaApplicant, INigeriaUGApplicantEdit, 31 INigeriaPGApplicantEdit, IPUTMEApplicantEdit )31 INigeriaPGApplicantEdit, IPUTMEApplicantEdit, IBankAccount) 32 32 grok.provides(INigeriaApplicant) 33 33 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r13945 r14003 24 24 from zope.formlib.textwidgets import BytesDisplayWidget 25 25 from waeup.kofa.students.interfaces import IStudentsUtils 26 from waeup.kofa.applicants.interfaces import ( 27 IApplicantRegisterUpdate, IApplicant, IApplicantEdit) 26 from waeup.kofa.applicants.interfaces import IApplicantRegisterUpdate 28 27 from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage, 29 28 ApplicantManageFormPage, ApplicantEditFormPage, … … 39 38 INigeriaPGApplicantEdit, INigeriaUGApplicantEdit, 40 39 INigeriaApplicantOnlinePayment,IPUTMEApplicantEdit, 40 IBankAccount, 41 41 UG_OMIT_DISPLAY_FIELDS, 42 42 UG_OMIT_PDF_FIELDS, … … 254 254 form_fields = form_fields.omit(field) 255 255 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 259 266 elif self.target is not None and self.target.startswith('pude'): 260 267 form_fields = grok.AutoFields(INigeriaUGApplicantEdit) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r13945 r14003 32 32 validate_email, 33 33 SubjectSource, 34 IKofaUtils) 34 IKofaUtils, 35 IKofaObject) 35 36 from waeup.kofa.schema import FormattedDate, TextLineChoice 36 37 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource … … 210 211 'screening_date',) 211 212 212 class INigeriaUGApplicant(IApplicantBaseData): 213 class 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 233 class INigeriaUGApplicant(IApplicantBaseData, IBankAccount): 213 234 """An undergraduate applicant. 214 235
Note: See TracChangeset for help on using the changeset viewer.