Ignore:
Timestamp:
21 Sep 2013, 08:27:47 (11 years ago)
Author:
Henrik Bettermann
Message:

Disable score editing on department manage page.

Add tests.

File:
1 edited

Legend:

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

    r10632 r10634  
    30713071        self.current_academic_session = grok.getSite()[
    30723072            'configuration'].current_academic_session
     3073        if self.context.__parent__.__parent__.score_editing_disabled:
     3074            self.flash(_('Score editing disabled.'))
     3075            self.redirect(self.url(self.context))
     3076            return
    30733077        if not self.current_academic_session:
    30743078            self.flash(_('Current academic session not set.'))
Note: See TracChangeset for help on using the changeset viewer.