Ignore:
Timestamp:
28 Aug 2026, 21:50:22 (3 months ago)
Author:
Henrik Bettermann
Message:

Implement the import of total score and gpas.

File:
1 edited

Legend:

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

    r18282 r18313  
    2121from zc.sourcefactory.basic import BasicSourceFactory
    2222from waeup.kofa.interfaces import (SimpleKofaVocabulary,
    23     ISessionConfiguration, academic_sessions_vocab)
     23    ISessionConfiguration, academic_sessions_vocab,
     24    ContextualDictSourceFactoryBase)
    2425
    2526_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.unidel')
     27
     28class EnableScoreEditingGroupSource(ContextualDictSourceFactoryBase):
     29    """A source for filtering groups of students
     30    """
     31    DICT_NAME = 'ENABLE_SCORE_EDITING_GROUP_DICT'
    2632
    2733class ICustomSessionConfiguration(ISessionConfiguration):
    … …  
    190196        default = 0.0,
    191197        required = False,
     198        )
     199
     200    score_editing_enabled = schema.List(
     201        title = _(u'Score editing enabled'),
     202        value_type = schema.Choice(
     203            source = EnableScoreEditingGroupSource(),
     204            ),
     205        required = False,
     206        defaultFactory=list,
    192207        )
    193208
Note: See TracChangeset for help on using the changeset viewer.