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/students/interfaces.py

    r7665 r7681  
    2222from zc.sourcefactory.contextual import BasicContextualSourceFactory
    2323from waeup.sirp.interfaces import (
    24     ISIRPObject, academic_sessions_vocab, validate_email)
     24    ISIRPObject, academic_sessions_vocab, validate_email, ISIRPUtils)
    2525from waeup.sirp.schema import TextLineChoice
    26 from waeup.sirp.university.vocabularies import CourseSource, study_modes
     26from waeup.sirp.university.vocabularies import CourseSource, StudyModeSource
    2727from waeup.sirp.students.vocabularies import (
    2828  CertificateSource, StudyLevelSource,
     
    4747    def getTitle(self, context, value):
    4848        return self.verdicts_dict[value]
     49
    4950
    5051class IStudentsUtils(Interface):
     
    278279    entry_mode = schema.Choice(
    279280        title = u'Entry Mode',
    280         vocabulary = study_modes,
     281        source = StudyModeSource(),
    281282        default = u'ug_ft',
    282283        required = True,
Note: See TracChangeset for help on using the changeset viewer.