Ignore:
Timestamp:
27 Nov 2026, 11:41:40 (3 days ago)
Author:
Henrik Bettermann
Message:

Change interface.

File:
1 edited

Legend:

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

    r18313 r18369  
    1919from zope import schema
    2020from waeup.kofa.students.vocabularies import StudyLevelSource
     21from waeup.kofa.schema import TextLineChoice, FormattedDate
    2122from waeup.kofa.interfaces import (
    22     IKofaObject, academic_sessions_vocab, validate_email)
     23    IKofaObject, academic_sessions_vocab, validate_email,
     24    ContextualDictSourceFactoryBase)
     25
    2326from kofacustom.nigeria.students.interfaces import (
    2427    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
    … …  
    3033from kofacustom.unidel.interfaces import MessageFactory as _
    3134
     35#class FinalGradeSource(ContextualDictSourceFactoryBase):
     36#    """Unidel only
     37#    """
     38#    #: name of dict to deliver from kofa utils.
     39#    DICT_NAME = 'FINAL_GRADE_DICT'
     40
    3241class ICustomStudentBase(INigeriaStudentBase):
    3342    """Representation of student base data.
    … …  
    121130        )
    122131
     132    award_date = FormattedDate(
     133        title = _(u'Award Date'),
     134        required = False,
     135        readonly = False,
     136        show_year = True,
     137        )
     138
     139#    final_grade = schema.Choice(
     140#        title = _(u'Final Grade'),
     141#        source = FinalGradeSource(),
     142#        required = False,
     143#        )
     144
    123145class ICustomStudentStudyLevel(INigeriaStudentStudyLevel):
    124146    """A container for course tickets.
Note: See TracChangeset for help on using the changeset viewer.