- Timestamp:
- 26 Jul 2012, 15:35:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/applicants/applicant.py
r8932 r9061 19 19 import grok 20 20 from zope.interface import implementedBy 21 from waeup.kofa.applicants.applicant import Applicant , ApplicantFactory21 from waeup.kofa.applicants.applicant import ApplicantFactory 22 22 from waeup.kofa.utils.helpers import attrs_to_fields 23 from kofacustom.nigeria.applicants.applicant import NigeriaApplicant 23 24 from waeup.futminna.applicants.interfaces import( 24 25 ICustomApplicant, ICustomUGApplicantEdit, ICustomPGApplicantEdit, IPUTMEApplicantEdit) 25 26 26 class CustomApplicant( Applicant):27 class CustomApplicant(NigeriaApplicant): 27 28 28 29 grok.implements(ICustomApplicant, ICustomUGApplicantEdit, … … 30 31 grok.provides(ICustomApplicant) 31 32 32 create_names = Applicant.create_names + [ 33 'lga', 'nationality', 'perm_address'] 34 35 # Set all attributes of Applicant required in IApplicant as field 33 # Set all attributes of CustomApplicant required in IApplicant as field 36 34 # properties. Doing this, we do not have to set initial attributes 37 35 # ourselves and as a bonus we get free validation when an attribute is
Note: See TracChangeset for help on using the changeset viewer.