Changeset 9062 for main/waeup.aaue/trunk/src
- Timestamp:
- 26 Jul 2012, 15:51:21 (12 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/applicant.py
r8931 r9062 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.aaue.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 ICustomApplicant 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.