- Timestamp:
- 14 May 2011, 14:19:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r5988 r6087 10 10 from zope.app.catalog.interfaces import ICatalog 11 11 from zope.component import getUtility 12 import datetime 12 13 13 14 inst_types = SimpleWAeUPVocabulary( … … 74 75 return "%s - %s" % (value.code, value.title[:64]) 75 76 77 78 79 class FutureYearsSource(BasicSourceFactory): 80 """ 81 """ 82 def getValues(self): 83 cy = datetime.datetime.now().year 84 return [x for x in range(cy-2,cy+5)] 85 86 def getToken(self, value): 87 return str(value) 88 89 def getTitle(self, value): 90 return str(value) 91 76 92
Note: See TracChangeset for help on using the changeset viewer.