Ignore:
Timestamp:
16 Jun 2021, 12:52:36 (3 years ago)
Author:
Henrik Bettermann
Message:

Allow different course gradings according to new course ticket attribute 'grading_sys'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r16385 r16509  
    1818
    1919from zope import schema
    20 from waeup.kofa.interfaces import validate_email, IKofaObject
     20from waeup.kofa.interfaces import (
     21    validate_email, IKofaObject,
     22    academic_sessions_vocab)
    2123from waeup.kofa.students.vocabularies import StudyLevelSource
     24from kofacustom.nigeria.interfaces import GradingSystemSource
    2225from kofacustom.nigeria.students.interfaces import (
    2326    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
     
    3033from waeup.uniben.interfaces import MessageFactory as _
    3134
     35
    3236class ICustomStudentBase(INigeriaStudentBase):
    3337    """Representation of student base data.
     
    291295    """
    292296
     297    grading_sys = schema.Choice(
     298        title = _(u'Grading System'),
     299        source = GradingSystemSource(),
     300        required = True,
     301        default = 'A',
     302        )
     303
     304class ICustomCourseTicketImport(ICustomCourseTicket):
     305    """An interface for importing course results and nothing more.
     306    """
     307
     308    score = schema.Int(
     309        title = _(u'Score'),
     310        required = False,
     311        readonly = False,
     312        )
     313
     314    level_session = schema.Choice(
     315        title = _(u'Level Session'),
     316        source = academic_sessions_vocab,
     317        required = False,
     318        readonly = False,
     319        )
     320
     321    grading_sys = schema.Choice(
     322        title = _(u'Grading System'),
     323        source = GradingSystemSource(),
     324        required = False,
     325        default = 'A',
     326        )
     327
    293328class ICustomStudentUpdateByRegNo(INigeriaStudentUpdateByRegNo):
    294329    """Representation of a student. Skip regular reg_number validation.
Note: See TracChangeset for help on using the changeset viewer.