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

Change interface.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
2 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.
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r18365 r18369  
    106106        return self.SELECTABLE_PAYMENT_CATEGORIES
    107107
     108    #FINAL_GRADE_DICT = {
     109    #    'frns': 'FRNS / NER / NYV',
     110    #    'irns': 'IRNS / NER / NYV',
     111    #    'pass': 'Pass',
     112    #    '3rd': '3rd Class Honours',
     113    #    '2ndlow': '2nd Class Honours Lower Division',
     114    #    '2ndup': '2nd Class Honours Upper Division',
     115    #    '1st': '1st Class Honours',
     116    #    'merit': 'Merit',
     117    #    'credit': 'Credit',
     118    #    'distinct': 'Distinction',
     119    #    }
     120
    108121    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
    109122
Note: See TracChangeset for help on using the changeset viewer.