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

We do no longer need to hand over editable_tickets.

File:
1 edited

Legend:

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

    r14284 r14285  
    31323132        return result
    31333133
    3134     def _update_scores(self, form, editable_tickets):
     3134    def _update_scores(self, form):
    31353135        ob_class = self.__implemented__.__name__.replace('waeup.kofa.', '')
    31363136        error = ''
     
    31503150        else:
    31513151            formvals = dict(zip(form['sids'], form['scores']))
    3152         for ticket in editable_tickets:
     3152        for ticket in self.editable_tickets:
    31533153            score = ticket.score
    31543154            sid = ticket.student.student_id
     
    32013201        if not self.editable_tickets:
    32023202            return
    3203         success = self._update_scores(form, self.editable_tickets)
     3203        success = self._update_scores(form)
    32043204        if success:
    32053205            self.flash(_('You successfully updated course results.'))
Note: See TracChangeset for help on using the changeset viewer.