Ignore:
Timestamp:
27 Jan 2012, 17:14:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Add nationality vocab.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
1 added
2 edited

Legend:

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

    r7520 r7523  
    2525from waeup.sirp.students.vocabularies import (
    2626  CertificateSource, verdicts, StudyLevelSource,
    27   contextual_reg_num_source, contextual_mat_num_source, GenderSource,
     27  contextual_reg_num_source, contextual_mat_num_source,
     28  GenderSource, nats_vocab,
    2829  )
    2930from waeup.sirp.payments.interfaces import IPaymentsContainer, IOnlinePayment
     
    204205        )
    205206
     207    nationality = schema.Choice(
     208        source = nats_vocab,
     209        title = u'Nationality',
     210        default = 'nigeria',
     211        required = True,
     212        )
     213
    206214class IStudentPersonal(ISIRPObject):
    207215    """Representation of student personal data.
  • main/waeup.sirp/trunk/src/waeup/sirp/students/vocabularies.py

    r7321 r7523  
    2727from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2828from waeup.sirp.students.lgas import LGAS
     29from waeup.sirp.students.nats import NATS
    2930from waeup.sirp.university.vocabularies import course_levels
    3031
    3132lgas_vocab = SimpleSIRPVocabulary(
    3233    *sorted([(x[1],x[0]) for x in LGAS]))
     34
     35nats_vocab = SimpleSIRPVocabulary(
     36    *sorted([(x[1],x[0]) for x in NATS]))
    3337
    3438def study_levels(studycourse):
Note: See TracChangeset for help on using the changeset viewer.