Ignore:
Timestamp:
8 Mar 2012, 03:30:30 (13 years ago)
Author:
uli
Message:

Merge changes from ulif-schoolgrades back into trunk.

Location:
main/waeup.sirp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk

  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7708 r7795  
    1818"""Interfaces of the university application package.
    1919"""
    20 
    2120from grokcore.content.interfaces import IContainer
    22 
     21from zc.sourcefactory.basic import BasicSourceFactory
     22from zc.sourcefactory.contextual import BasicContextualSourceFactory
    2323from zope import schema
    24 from zope.interface import Interface, Attribute, implements, directlyProvides
    2524from zope.component import getUtilitiesFor, queryUtility, getUtility
    2625from zope.catalog.interfaces import ICatalog
     26from zope.interface import Interface, Attribute, implements, directlyProvides
    2727from zope.schema.interfaces import (
    2828    ValidationError, ISource, IContextSourceBinder)
    29 from zc.sourcefactory.basic import BasicSourceFactory
    30 from zc.sourcefactory.contextual import BasicContextualSourceFactory
    3129from waeup.sirp.schema import TextLineChoice
    3230from waeup.sirp.interfaces import (
    3331    ISIRPObject, year_range, validate_email, academic_sessions_vocab)
    3432from waeup.sirp.interfaces import MessageFactory as _
     33from waeup.sirp.payments.interfaces import IOnlinePayment
     34from waeup.sirp.schoolgrades import ResultEntryField
     35from waeup.sirp.students.vocabularies import (
     36    lgas_vocab, CertificateSource, GenderSource)
    3537from waeup.sirp.university.vocabularies import (
    3638    course_levels, AppCatSource)
    37 from waeup.sirp.students.vocabularies import (
    38     lgas_vocab, CertificateSource, GenderSource)
    39 from waeup.sirp.payments.interfaces import IOnlinePayment
    4039
    4140#: Maximum upload size for applicant passport photographs (in bytes)
     
    7776    return source
    7877directlyProvides(contextual_reg_num_source, IContextSourceBinder)
     78
    7979
    8080class AppCatCertificateSource(CertificateSource):
     
    360360    state, depending on use-case.
    361361
    362     This base interface is also implemented by the StudentApplication
    363     class in the students package. Thus, these are the data which are saved
    364     after admission.
    365     """
    366 
     362    This base interface is also implemented by the
     363    :class:`waeup.sirp.students.StudentApplication` class in the
     364    students package. Thus, these are the data which are saved after
     365    admission.
     366    """
    367367    applicant_id = schema.TextLine(
    368368        title = _(u'Applicant Id'),
     
    430430        required = False,
    431431        )
     432    school_grades = schema.List(
     433        title = _(u'School Grades'),
     434        value_type = ResultEntryField(),
     435        required = True,
     436        default = [],
     437        )
    432438
    433439    #
Note: See TracChangeset for help on using the changeset viewer.