Ignore:
Timestamp:
17 Jul 2022, 08:50:14 (2 years ago)
Author:
Henrik Bettermann
Message:

Add continuous assessment (ca) field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/interfaces.py

    r16949 r17025  
    1919from zope import schema
    2020from waeup.kofa.students.vocabularies import StudyLevelSource
     21from waeup.kofa.interfaces import (IKofaObject, academic_sessions_vocab)
    2122from kofacustom.nigeria.students.interfaces import (
    2223    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
     
    107108    """
    108109
     110    score = schema.Int(
     111        title = _(u'Score'),
     112        required = False,
     113        readonly = False,
     114        max = 100,
     115        )
     116
     117    ca = schema.Int(
     118        title = _(u'CA'),
     119        default = None,
     120        required = False,
     121        missing_value = None,
     122        max = 90,
     123        )
     124
     125ICustomCourseTicket['score'].order = INigeriaCourseTicket['score'].order
     126ICustomCourseTicket['ca'].order = ICustomCourseTicket['score'].order
     127
     128class ICustomCourseTicketImport(ICustomCourseTicket):
     129    """An interface for importing course results and nothing more.
     130    """
     131   
     132    score = schema.Int(
     133        title = _(u'Score'),
     134        required = False,
     135        readonly = False,
     136        max = 100,
     137        )
     138
     139    ca = schema.Int(
     140        title = _(u'CA'),
     141        required = False,
     142        readonly = False,
     143        max = 90,
     144        )
     145
     146    level_session = schema.Choice(
     147        title = _(u'Level Session'),
     148        source = academic_sessions_vocab,
     149        required = False,
     150        readonly = False,
     151        )
     152
     153
    109154class ICustomStudentUpdateByRegNo(INigeriaStudentUpdateByRegNo):
    110155    """Representation of a student. Skip regular reg_number validation.
Note: See TracChangeset for help on using the changeset viewer.