- Timestamp:
- 22 May 2013, 19:26:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna/applicants/applicant.py
r10146 r10206 42 42 grok.provides(ICustomApplicant) 43 43 44 @property 45 def low_jamb_score(self): 46 jamb_score = getattr(self, 'jamb_score', None) 47 course1 = getattr(self, 'course1', None) 48 limit = getattr(course1, 'custom_float_1', None) 49 if None in (jamb_score, limit): 50 return False 51 if jamb_score < limit: 52 return True 53 return False 54 44 55 # Set all attributes of CustomApplicant required in ICustomApplicant as field 45 56 # properties. Doing this, we do not have to set initial attributes
Note: See TracChangeset for help on using the changeset viewer.