Changeset 7787


Ignore:
Timestamp:
7 Mar 2012, 23:12:39 (13 years ago)
Author:
uli
Message:

Clean up a bit. We now use ResultEntryField? in interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/applicants/interfaces.py

    r7773 r7787  
    3434    SubjectSource, GradeSource, IResultEntry)
    3535from waeup.sirp.interfaces import MessageFactory as _
     36from waeup.sirp.schoolgrades import ResultEntryField
    3637from waeup.sirp.university.vocabularies import (
    3738    course_levels, AppCatSource)
     
    435436    school_grades = schema.List(
    436437        title = _(u'School Grades'),
    437         value_type = MultiValObject(
    438             schema = IResultEntry),
    439         #value_type = schema.Object(
    440         #    schema = IResultEntry),
     438        value_type = ResultEntryField(),
    441439        required = True,
    442440        default = [],
    443441        )
    444     #school_grades = schema.Dict(
    445     #    title = _(u'School Grades'),
    446     #    key_type = schema.TextLine(
    447     #        title = _(u'Subject'),
    448     #        ),
    449     #    value_type = schema.TextLine(
    450     #        title = _(u'Grade'),
    451     #        )
    452     #    )
    453442
    454443    #
Note: See TracChangeset for help on using the changeset viewer.