- Timestamp:
- 15 May 2011, 01:32:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6097 r6098 24 24 import os 25 25 import waeup.sirp.browser 26 from datetime import datetime 26 27 from grokcore.content.interfaces import IContainer 27 28 from zc.sourcefactory.basic import BasicSourceFactory … … 67 68 68 69 class FutureYearsSource(BasicSourceFactory): 69 """XXX: need docs 70 """XXX: We will soon add an explanation why we don't use a simple 71 static list returned from a two-line function here. 70 72 """ 71 73 def getValues(self): 72 74 curr_year = datetime.now().year 73 return [x for x in range(curr_year - 0, curr_year + 5)]75 return range(curr_year - 0, curr_year + 5) 74 76 75 77 def getToken(self, value):
Note: See TracChangeset for help on using the changeset viewer.