Changeset 9063 for main/waeup.fceokene/trunk/src
- Timestamp:
- 26 Jul 2012, 15:51:50 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene
- Property svn:mergeinfo changed
/main/waeup.futminna/trunk/src/waeup/futminna merged: 9061
- Property svn:mergeinfo changed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/applicant.py
r8933 r9063 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.fceokene.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.