Changeset 14284 for main/waeup.kofa


Ignore:
Timestamp:
17 Nov 2016, 14:30:02 (8 years ago)
Author:
Henrik Bettermann
Message:

In custom packages we may need editable_tickets in pagetemplates.

File:
1 edited

Legend:

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

    r14283 r14284  
    31913191            self.current_academic_session).title
    31923192        self.tickets = self._searchCatalog(self.current_academic_session)
    3193         editable_tickets = [
     3193        self.editable_tickets = [
    31943194            ticket for ticket in self.tickets if ticket.editable_by_lecturer]
    31953195        if not self.tickets:
     
    31993199        if not 'UPDATE_TABLE' in form and not 'UPDATE_FILE' in form:
    32003200            return
    3201         if not editable_tickets:
    3202             return
    3203         success = self._update_scores(form, editable_tickets)
     3201        if not self.editable_tickets:
     3202            return
     3203        success = self._update_scores(form, self.editable_tickets)
    32043204        if success:
    32053205            self.flash(_('You successfully updated course results.'))
Note: See TracChangeset for help on using the changeset viewer.