Ignore:
Timestamp:
22 Feb 2012, 21:14:09 (13 years ago)
Author:
Henrik Bettermann
Message:

Uses sources instead of vocabularies and feed sources with dictionaries defined in SIRPUtils. This way we can easily customize the sources.

File:
1 edited

Legend:

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

    r7670 r7681  
    2626from waeup.sirp.university.vocabularies import (
    2727    course_levels,
    28     semester,
    29     application_categories,
    30     study_modes,
    31     inst_types,
    3228    CourseSource,
     29    StudyModeSource,
     30    AppCatSource,
     31    InstTypeSource,
     32    SemesterSource,
    3333    )
    3434
     
    5353        title = u'Name prefix',
    5454        default = u'faculty',
    55         vocabulary = inst_types,
     55        source = InstTypeSource(),
    5656        required = True,
    5757        )
     
    100100    title_prefix = schema.Choice(
    101101        title = u'Name prefix',
    102         vocabulary = inst_types,
     102        source = InstTypeSource(),
    103103        default = u'department',
    104104        required = True,
     
    166166        title = u'Semester/Term',
    167167        default = 9,
    168         vocabulary = semester,
     168        source = SemesterSource(),
    169169        required = True,
    170170        )
     
    206206    study_mode = schema.Choice(
    207207        title = u'Study Mode',
    208         vocabulary = study_modes,
     208        source = StudyModeSource(),
    209209        default = u'ug_ft',
    210210        required = True,
     
    227227    application_category = schema.Choice(
    228228        title = u'Application Category',
    229         vocabulary = application_categories,
     229        source = AppCatSource(),
    230230        default = u'basic',
    231231        required = True,
Note: See TracChangeset for help on using the changeset viewer.