Changeset 7773


Ignore:
Timestamp:
7 Mar 2012, 10:04:38 (13 years ago)
Author:
uli
Message:

Move IResultEntry to central interfaces modules.

Location:
main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp
Files:
2 edited

Legend:

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

    r7772 r7773  
    3232from waeup.sirp.interfaces import (
    3333    ISIRPObject, year_range, validate_email, academic_sessions_vocab,
    34     SubjectSource, GradeSource)
     34    SubjectSource, GradeSource, IResultEntry)
    3535from waeup.sirp.interfaces import MessageFactory as _
    3636from waeup.sirp.university.vocabularies import (
     
    355355    'provider'].order =  IApplicantsContainer['provider'].order
    356356
    357 class IResultEntry(Interface):
    358     subject = schema.Choice(
    359         title = _(u'Subject'),
    360         source = SubjectSource(),
    361         )
    362     #subject = schema.TextLine(
    363     #    title = _(u'Subject'),
    364     #    )
    365     grade = schema.Choice(
    366         title = _(u'Grade'),
    367         source = GradeSource(),
    368         )
    369     #grade = schema.TextLine(
    370     #    title = _(u'Grade'),
    371     #    )
    372 
    373357class IApplicantBaseData(ISIRPObject):
    374358    """The data for an applicant.
  • main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/interfaces.py

    r7772 r7773  
    167167        return value
    168168
     169class IResultEntry(Interface):
     170    """A school grade entry.
     171    """
     172    subject = schema.Choice(
     173        title = _(u'Subject'),
     174        source = SubjectSource(),
     175        )
     176    grade = schema.Choice(
     177        title = _(u'Grade'),
     178        source = GradeSource(),
     179        )
     180
    169181class ISIRPUtils(Interface):
    170182    """A collection of methods which are subject to customization.
Note: See TracChangeset for help on using the changeset viewer.