Changeset 6097 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 15 May 2011, 01:25:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6096 r6097 34 34 from waeup.sirp.image.image import WAeUPImageFile 35 35 from waeup.sirp.interfaces import IWAeUPObject, SimpleWAeUPVocabulary 36 from waeup.sirp.university.vocabularies import FutureYearsSource37 36 38 37 … … 67 66 application_types_vocab = SimpleWAeUPVocabulary(*APPLICATION_TYPES) 68 67 68 class FutureYearsSource(BasicSourceFactory): 69 """XXX: need docs 70 """ 71 def getValues(self): 72 curr_year = datetime.now().year 73 return [x for x in range(curr_year - 0, curr_year + 5)] 74 75 def getToken(self, value): 76 return str(value) 77 78 def getTitle(self, value): 79 return str(value) 80 69 81 class GenderSource(BasicSourceFactory): 70 82 """A gender source delivers basically a mapping
Note: See TracChangeset for help on using the changeset viewer.