- Timestamp:
- 21 Sep 2012, 08:19:35 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-async-update removed /main/waeup.kofa/branches/uli-autoinclude-less removed /main/waeup.kofa/trunk removed
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/applicants/interfaces.py
r9209 r9211 18 18 """Interfaces of the university application package. 19 19 """ 20 from datetime import datetime21 20 from grokcore.content.interfaces import IContainer 22 21 from zc.sourcefactory.contextual import BasicContextualSourceFactory … … 30 29 from waeup.kofa.schema import TextLineChoice, FormattedDate 31 30 from waeup.kofa.interfaces import ( 32 IKofaObject, validate_email,31 IKofaObject, year_range, validate_email, 33 32 SimpleKofaVocabulary) 34 33 from waeup.kofa.interfaces import MessageFactory as _ … … 42 41 43 42 _marker = object() # a marker different from None 44 45 def year_range():46 curr_year = datetime.now().year47 return range(curr_year - 2, curr_year + 5)48 43 49 44 class RegNumInSource(ValidationError): … … 328 323 application_number = Attribute('The key under which the record is stored') 329 324 330 suspended = schema.Bool(331 title = _(u'Account suspended'),332 default = False,333 required = False,334 )335 336 325 applicant_id = schema.TextLine( 337 326 title = _(u'Applicant Id'), … … 404 393 required = False, 405 394 ) 395 screening_venue = schema.TextLine( 396 title = _(u'Screening Venue'), 397 required = False, 398 ) 399 screening_score = schema.Int( 400 title = _(u'Screening Score'), 401 required = False, 402 ) 406 403 student_id = schema.TextLine( 407 404 title = _(u'Student Id'), … … 463 460 required = False, 464 461 ) 462 screening_score = schema.Int( 463 title = _(u'Screening Score'), 464 required = False, 465 readonly = True, 466 ) 467 screening_venue = schema.TextLine( 468 title = _(u'Screening Venue'), 469 required = False, 470 readonly = True, 471 ) 465 472 course_admitted = schema.Choice( 466 473 title = _(u'Admitted Course of Study'),
Note: See TracChangeset for help on using the changeset viewer.