Changeset 6100


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

Remove source needed elsewhere (rule of thumb: no imports from one
subpackage to another if avoidable).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py

    r6097 r6100  
    11"""Vocabularies and sources for the academics section.
    22"""
    3 from datetime import datetime
    43from zc.sourcefactory.basic import BasicSourceFactory
    54try:
     
    7574    def getTitle(self, value):
    7675        return "%s - %s" % (value.code, value.title[:64])
    77 
    78 
    79 
    80 class FutureYearsSource(BasicSourceFactory):
    81     """XXX: need docs
    82     """
    83     def getValues(self):
    84         curr_year = datetime.now().year
    85         return [x for x in range(curr_year - 0, curr_year + 5)]
    86 
    87     def getToken(self, value):
    88         return str(value)
    89 
    90     def getTitle(self, value):
    91       return str(value)
Note: See TracChangeset for help on using the changeset viewer.