Changeset 9115 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 28 Aug 2012, 08:13:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r9047 r9115 18 18 """Interfaces of the university application package. 19 19 """ 20 from datetime import datetime 20 21 from grokcore.content.interfaces import IContainer 21 22 from zc.sourcefactory.contextual import BasicContextualSourceFactory … … 28 29 from waeup.kofa.schema import TextLineChoice, FormattedDate 29 30 from waeup.kofa.interfaces import ( 30 IKofaObject, year_range,validate_email,31 IKofaObject, validate_email, 31 32 SimpleKofaVocabulary) 32 33 from waeup.kofa.interfaces import MessageFactory as _ … … 40 41 41 42 _marker = object() # a marker different from None 43 44 def year_range(): 45 curr_year = datetime.now().year 46 return range(curr_year - 2, curr_year + 5) 42 47 43 48 class RegNumInSource(ValidationError):
Note: See TracChangeset for help on using the changeset viewer.