Ignore:
Timestamp:
24 Jun 2017, 07:11:54 (7 years ago)
Author:
Henrik Bettermann
Message:

Implement study_mode filter for lecturer pages.

File:
1 edited

Legend:

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

    r14518 r14700  
    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('waeup.aaue')
     27
     28class EnableScoreEditingGroupSource(ContextualDictSourceFactoryBase):
     29    """A source for filtering groups of students
     30    """
     31    DICT_NAME = 'ENABLE_SCORE_EDITING_GROUP_DICT'
    2632
    2733# It's recommended to replicate all fields from the base package here.
     
    254260        )
    255261
     262    score_editing_enabled = schema.List(
     263        title = _(u'Score editing enabled'),
     264        value_type = schema.Choice(
     265            source = EnableScoreEditingGroupSource(),
     266            ),
     267        required = False,
     268        defaultFactory=list,
     269        )
     270
    256271
    257272    def getSessionString():
Note: See TracChangeset for help on using the changeset viewer.