- Timestamp:
- 22 Jun 2013, 21:39:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.imostate/src/waeup/imostate/applicants/applicant.py
r10340 r10350 25 25 from kofacustom.nigeria.applicants.applicant import NigeriaApplicant 26 26 from waeup.imostate.applicants.interfaces import( 27 ICustomApplicant, ICustomUGApplicantEdit , ICustomPGApplicantEdit, IPUTMEApplicantEdit)27 ICustomApplicant, ICustomUGApplicantEdit) 28 28 29 29 @grok.subscribe(ICustomApplicant, grok.IObjectRemovedEvent) … … 39 39 class CustomApplicant(NigeriaApplicant): 40 40 41 grok.implements(ICustomApplicant, ICustomUGApplicantEdit, 42 ICustomPGApplicantEdit, IPUTMEApplicantEdit) 41 grok.implements(ICustomApplicant, ICustomUGApplicantEdit) 43 42 grok.provides(ICustomApplicant) 44 43 45 @property46 def low_jamb_score(self):47 jamb_score = getattr(self, 'jamb_score', None)48 course1 = getattr(self, 'course1', None)49 limit = getattr(course1, 'custom_float_1', None)50 if None in (jamb_score, limit):51 return False52 if jamb_score < limit:53 return True54 return False55 44 56 45 # Set all attributes of CustomApplicant required in ICustomApplicant as field
Note: See TracChangeset for help on using the changeset viewer.