Ignore:
Timestamp:
9 Apr 2012, 07:35:03 (13 years ago)
Author:
Henrik Bettermann
Message:

Add nationality and lga fields in interfaces.

File:
1 edited

Legend:

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

    r7995 r8071  
    1919from waeup.kofa.schema import TextLineChoice
    2020from waeup.kofa.interfaces import SimpleKofaVocabulary
     21from waeup.kofa.students.vocabularies import nats_vocab
    2122from waeup.kofa.students.interfaces import (
    2223    IStudentBase,IUGStudentClearance,IPGStudentClearance,
     
    2425    )
    2526from waeup.kofa.students.vocabularies import (
    26     lgas_vocab, nats_vocab, contextual_reg_num_source)
     27    nats_vocab, contextual_reg_num_source)
     28from waeup.uniben.interfaces import lgas_vocab
     29from waeup.uniben.interfaces import MessageFactory as _
    2730
    2831class IStudentBase(IStudentBase):
     
    3235
    3336    reg_number = TextLineChoice(
    34         title = u'Registration Number',
     37        title = _(u'Registration Number'),
    3538        required = False,
    3639        readonly = False,
     
    4851        required = False,
    4952        vocabulary = SimpleKofaVocabulary(
    50             ('Unmarried', 'unmarried'),
    51             ('Married', 'married'),)
     53            (_('Unmarried'), 'unmarried'),
     54            (_('Married'), 'married'),)
    5255        )
    5356
     
    5760    """
    5861    date_of_birth = schema.Date(
    59         title = u'Date of Birth',
     62        title = _(u'Date of Birth'),
    6063        required = False,
    6164        )
     
    6366    nationality = schema.Choice(
    6467        source = nats_vocab,
    65         title = u'Nationality',
    66         default = 'nigeria',
     68        title = _(u'Nationality'),
    6769        required = False,
    6870        )
     
    7072    lga = schema.Choice(
    7173        source = lgas_vocab,
    72         title = u'State/LGA',
     74        title = _(u'State/LGA (Nigerians only)'),
    7375        required = False,
    7476        )
Note: See TracChangeset for help on using the changeset viewer.