Changeset 6788


Ignore:
Timestamp:
18 Sep 2011, 00:11:42 (13 years ago)
Author:
uli
Message:

Clean up imports and use new TextLineChoice? schema field along with
contextual source binders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r6783 r6788  
    11##
    22## interfaces.py
    3 from zope.interface import Interface, Attribute, invariant
     3from zope.interface import Attribute, invariant
    44from zope.interface.exceptions import Invalid
    55from zope import schema
    66from waeup.sirp.interfaces import IWAeUPObject
    7 from waeup.sirp.university.vocabularies import study_modes
     7from waeup.sirp.schema import TextLineChoice
    88from waeup.sirp.students.vocabularies import (
    9   year_range, lgas_vocab, CertificateSource, GenderSource,
    10   academic_sessions_vocab, verdicts, StudyLevelSource,
     9  CertificateSource, academic_sessions_vocab, verdicts, StudyLevelSource,
     10  contextual_reg_num_source, contextual_mat_num_source,
    1111  )
    1212
     
    107107        )
    108108
    109     reg_number = schema.TextLine(
     109    reg_number = TextLineChoice(
    110110        title = u'Registration Number',
    111         default = u'',
     111        #default = u'',
    112112        required = True,
    113113        readonly = False,
    114         )
    115 
    116     matric_number = schema.TextLine(
     114        source = contextual_reg_num_source,
     115        )
     116
     117    matric_number = TextLineChoice(
    117118        title = u'Matriculation Number',
    118         default = u'',
     119        #default = u'',
    119120        required = False,
    120121        readonly = False,
     122        source = contextual_mat_num_source,
    121123        )
    122124
Note: See TracChangeset for help on using the changeset viewer.