Changeset 15518


Ignore:
Timestamp:
24 Jul 2019, 22:02:22 (5 years ago)
Author:
Henrik Bettermann
Message:

Improve code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py

    r15498 r15518  
    7979    icon = 'actionicon_down.png'
    8080    text = _('Export payment data')
    81     target = 'bursary_exports/index2.html'
    8281    grok.order(4)
     82
     83    @property
     84    def target_url(self):
     85        return self.view.url(self.view.context) + '/exports/bursary.html'
    8386
    8487class BursaryExportJobContainerOverview(ExportJobContainerOverview):
     
    8790    """
    8891    grok.require('waeup.exportBursaryData')
    89     grok.name('index2.html')
     92    grok.name('bursary.html')
    9093
    9194    def update(self, CREATE=None, DISCARD=None, job_id=None):
     
    130133
    131134        self.flash(_('Exports started.'))
    132         self.redirect(self.url(self.context))
     135        self.redirect(self.url(self.context, 'bursary.html'))
    133136        return
    134137
Note: See TracChangeset for help on using the changeset viewer.