Ignore:
Timestamp:
21 Sep 2012, 08:19:35 (12 years ago)
Author:
uli
Message:

Rollback r9209. Looks like multiple merges from trunk confuse svn when merging back into trunk.

Location:
main/waeup.kofa/branches/uli-zc-async
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-zc-async

  • main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/applicants/interfaces.py

    r9209 r9211  
    1818"""Interfaces of the university application package.
    1919"""
    20 from datetime import datetime
    2120from grokcore.content.interfaces import IContainer
    2221from zc.sourcefactory.contextual import BasicContextualSourceFactory
     
    3029from waeup.kofa.schema import TextLineChoice, FormattedDate
    3130from waeup.kofa.interfaces import (
    32     IKofaObject, validate_email,
     31    IKofaObject, year_range, validate_email,
    3332    SimpleKofaVocabulary)
    3433from waeup.kofa.interfaces import MessageFactory as _
     
    4241
    4342_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)
    4843
    4944class RegNumInSource(ValidationError):
     
    328323    application_number = Attribute('The key under which the record is stored')
    329324
    330     suspended = schema.Bool(
    331         title = _(u'Account suspended'),
    332         default = False,
    333         required = False,
    334         )
    335 
    336325    applicant_id = schema.TextLine(
    337326        title = _(u'Applicant Id'),
     
    404393        required = False,
    405394        )
     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        )
    406403    student_id = schema.TextLine(
    407404        title = _(u'Student Id'),
     
    463460        required = False,
    464461        )
     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        )
    465472    course_admitted = schema.Choice(
    466473        title = _(u'Admitted Course of Study'),
Note: See TracChangeset for help on using the changeset viewer.