Changeset 6098 for main


Ignore:
Timestamp:
15 May 2011, 01:32:04 (14 years ago)
Author:
uli
Message:

Fix missing import.
Minor fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6097 r6098  
    2424import os
    2525import waeup.sirp.browser
     26from datetime import datetime
    2627from grokcore.content.interfaces import IContainer
    2728from zc.sourcefactory.basic import BasicSourceFactory
     
    6768
    6869class 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.
    7072    """
    7173    def getValues(self):
    7274        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)
    7476
    7577    def getToken(self, value):
Note: See TracChangeset for help on using the changeset viewer.