Ignore:
Timestamp:
2 Sep 2013, 06:40:49 (11 years ago)
Author:
Henrik Bettermann
Message:

Make StudentStatisticsReportPDFView reusable.

File:
1 edited

Legend:

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

    r10565 r10575  
    221221    grok.name('pdf')
    222222    grok.require('waeup.Public')
    223 
    224     def render(self):
    225         filename = 'StudentStatisticsReport_%s_%s_%s.pdf' % (
     223    prefix = ''
     224
     225    def _filename(self):
     226        return 'StudentStatisticsReport_%s_%s_%s.pdf' % (
    226227            self.context.session, self.context.mode,
    227228            self.context.creation_dt_string)
    228         filename = filename.replace(
     229
     230    def render(self):
     231        filename = self._filename().replace(
    229232            '/', '_').replace(' ','_').replace(':', '-')
    230233        self.response.setHeader(
Note: See TracChangeset for help on using the changeset viewer.