Changeset 9280 for main/waeup.kofa/trunk


Ignore:
Timestamp:
3 Oct 2012, 07:05:47 (12 years ago)
Author:
Henrik Bettermann
Message:

Since decorated methods can't be easily customized, this is a workaround for customization. Maybe there is a better solution?!

File:
1 edited

Legend:

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

    r9273 r9280  
    20512051        self.redirect(self.url(self.context, 'ctadd'))
    20522052
    2053     @jsaction(_('Remove selected tickets'))
    2054     def delCourseTicket(self, **data):
     2053    def _delCourseTicket(self, **data):
    20552054        form = self.request.form
    20562055        if form.has_key('val_id'):
     
    20742073        return
    20752074
    2076     @action(_('Register course list'), style='primary')
    2077     def registerCourses(self, **data):
     2075    @jsaction(_('Remove selected tickets'))
     2076    def delCourseTicket(self, **data):
     2077        self._delCourseTicket(**data)
     2078        return
     2079
     2080    def _registerCourses(self, **data):
    20782081        if self.context.student.is_postgrad:
    20792082            self.flash(_(
     
    20912094        self.redirect(self.url(self.context))
    20922095        return
     2096
     2097    @action(_('Register course list'), style='primary')
     2098    def registerCourses(self, **data):
     2099        self._registerCourses(**data)
     2100        return
     2101
    20932102
    20942103class CourseTicketAddFormPage2(CourseTicketAddFormPage):
Note: See TracChangeset for help on using the changeset viewer.