- Timestamp:
- 20 Sep 2012, 08:49:37 (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-zc-async/src/waeup/kofa/applicants/interfaces.py
r9004 r9209 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 … … 29 30 from waeup.kofa.schema import TextLineChoice, FormattedDate 30 31 from waeup.kofa.interfaces import ( 31 IKofaObject, year_range,validate_email,32 IKofaObject, validate_email, 32 33 SimpleKofaVocabulary) 33 34 from waeup.kofa.interfaces import MessageFactory as _ … … 41 42 42 43 _marker = object() # a marker different from None 44 45 def year_range(): 46 curr_year = datetime.now().year 47 return range(curr_year - 2, curr_year + 5) 43 48 44 49 class RegNumInSource(ValidationError): … … 323 328 application_number = Attribute('The key under which the record is stored') 324 329 330 suspended = schema.Bool( 331 title = _(u'Account suspended'), 332 default = False, 333 required = False, 334 ) 335 325 336 applicant_id = schema.TextLine( 326 337 title = _(u'Applicant Id'), … … 393 404 required = False, 394 405 ) 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 )403 406 student_id = schema.TextLine( 404 407 title = _(u'Student Id'), … … 460 463 required = False, 461 464 ) 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 )472 465 course_admitted = schema.Choice( 473 466 title = _(u'Admitted Course of Study'),
Note: See TracChangeset for help on using the changeset viewer.