- Timestamp:
- 15 May 2011, 01:06:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r6093 r6094 1 1 """Vocabularies and sources for the academics section. 2 2 """ 3 3 from datetime import datetime 4 4 from waeup.sirp.interfaces import SimpleWAeUPVocabulary 5 5 from zc.sourcefactory.basic import BasicSourceFactory … … 10 10 from zope.app.catalog.interfaces import ICatalog 11 11 from zope.component import getUtility 12 import datetime 12 13 13 14 14 inst_types = SimpleWAeUPVocabulary( … … 83 83 """ 84 84 def getValues(self): 85 c y = datetime.datetime.now().year86 return [x for x in range(c y-2,cy+5)]85 curr_year = datetime.now().year 86 return [x for x in range(curr_year - 2, curr_year + 5)] 87 87 88 88 def getToken(self, value):
Note: See TracChangeset for help on using the changeset viewer.