- Timestamp:
- 15 May 2011, 01:25:52 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 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 -
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r6095 r6097 83 83 def getValues(self): 84 84 curr_year = datetime.now().year 85 return [x for x in range(curr_year - 2, curr_year + 5)]85 return [x for x in range(curr_year - 0, curr_year + 5)] 86 86 87 87 def getToken(self, value):
Note: See TracChangeset for help on using the changeset viewer.