Changeset 15629 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 1 Oct 2019, 10:22:33 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15626 r15629 3580 3580 self.current_academic_session = grok.getSite()[ 3581 3581 'configuration'].current_academic_session 3582 if self.context.__parent__.__parent__.score_editing_disabled: 3582 if self.context.__parent__.__parent__.score_editing_disabled \ 3583 or self.context.score_editing_disabled: 3583 3584 self.flash(_('Score editing disabled.'), type="warning") 3584 3585 self.redirect(self.url(self.context)) … … 3647 3648 self.current_academic_session = grok.getSite()[ 3648 3649 'configuration'].current_academic_session 3649 if self.context.__parent__.__parent__.score_editing_disabled: 3650 if self.context.__parent__.__parent__.score_editing_disabled \ 3651 or self.context.score_editing_disabled: 3650 3652 self.flash(_('Score editing disabled.'), type="warning") 3651 3653 self.redirect(self.url(self.context)) -
main/waeup.kofa/trunk/src/waeup/kofa/university/course.py
r15422 r15629 59 59 self.results_validation_date = None 60 60 self.results_validation_session = None 61 self.score_editing_disabled = False 61 62 62 63 def traverse(self, name): -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r15422 r15629 209 209 ) 210 210 211 score_editing_disabled = schema.Bool( 212 title = _(u'Score editing disabled'), 213 description = _( 214 u'Lectures can not edit scores if ticked.'), 215 required = False, 216 default = False, 217 ) 218 211 219 class ICertificate(IKofaObject): 212 220 """Representation of a certificate.
Note: See TracChangeset for help on using the changeset viewer.