Ignore:
Timestamp:
21 Jun 2017, 22:12:04 (7 years ago)
Author:
Henrik Bettermann
Message:

Add score_editing_enabled field which is not used in base package but can be used in custom packages enable/disable score editing for subgroups of students.

File:
1 edited

Legend:

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

    r14539 r14698  
    149149    """A source for filtering groups of students
    150150    """
    151     #: name of dict to deliver from kofa utils.
    152151    DICT_NAME = 'DISABLE_PAYMENT_GROUP_DICT'
     152
     153
     154class EnableScoreEditingGroupSource(ContextualDictSourceFactoryBase):
     155    """A source for filtering groups of students
     156    """
     157    DICT_NAME = 'ENABLE_SCORE_EDITING_GROUP_DICT'
     158
    153159
    154160# Define a validation method for email addresses
     
    738744    current_academic_session = schema.Choice(
    739745        title = _(u'Current Academic Session'),
    740         description = _(u'Session for which score editing is allowed'),
     746        description = _(u'Session for which score editing is enabled'),
    741747        source = academic_sessions_vocab,
    742748        default = None,
    743749        required = False,
    744750        readonly = False,
     751        )
     752
     753    score_editing_enabled = schema.List(
     754        title = _(u'Score editing enabled (not used)'),
     755        value_type = schema.Choice(
     756            source = EnableScoreEditingGroupSource(),
     757            ),
     758        required = False,
     759        defaultFactory=list,
    745760        )
    746761
Note: See TracChangeset for help on using the changeset viewer.