Changeset 7618 for main


Ignore:
Timestamp:
9 Feb 2012, 10:55:31 (13 years ago)
Author:
Henrik Bettermann
Message:

reg_number isn't required in Futminna and probably in many other institutions.

File:
1 edited

Legend:

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

    r7525 r7618  
    1717##
    1818from zope import schema
     19from waeup.sirp.schema import TextLineChoice
    1920from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2021from waeup.sirp.students.interfaces import (
    2122    IStudentBase,IStudentClearance,IStudentPersonal,IStudentNavigation,
    2223    )
    23 from waeup.sirp.students.vocabularies import lgas_vocab, nats_vocab
     24from waeup.sirp.students.vocabularies import (
     25    lgas_vocab, nats_vocab, contextual_reg_num_source)
     26
     27class IStudentBase(IStudentBase):
     28    """Representation of student base data.
     29
     30    """
     31
     32    reg_number = TextLineChoice(
     33        title = u'Registration Number',
     34        required = False,
     35        readonly = False,
     36        source = contextual_reg_num_source,
     37        )
    2438
    2539class IStudentPersonal(IStudentPersonal):
     
    2741
    2842    """
    29     perm_address = schema.Text(
    30         title = u'Permanent Address',
    31         required = False,
    32         )
    3343
    3444    marit_stat = schema.Choice(
     
    4858        title = u'Date of Birth',
    4959        required = False,
    50         )
    51 
    52     clearance_locked = schema.Bool(
    53         title = u'Clearance form locked',
    54         default = False,
    55         )
    56 
    57     clr_code = schema.TextLine(
    58         title = u'CLR Activation Code',
    59         default = u'',
    60         required = False,
    61         readonly = True,
    6260        )
    6361
Note: See TracChangeset for help on using the changeset viewer.