Ignore:
Timestamp:
17 Nov 2012, 07:10:30 (12 years ago)
Author:
Henrik Bettermann
Message:

Filename must be informative for archiving reports.

File:
1 edited

Legend:

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

    r9651 r9652  
    127127
    128128    def __repr__(self):
    129         return 'StudentReport(session=%s, mode=%s, author=%r)' % (
    130             self.session, self.mode, self.author)
     129        return 'StudentReport (session=%s, mode=%s)' % (
     130            self.session, self.mode)
    131131
    132132    #def get_data(self):
     
    226226
    227227    def render(self):
    228         filename = 'report.pdf'
     228        filename = "%s.pdf" % (self.context.__repr__())
    229229        self.response.setHeader(
    230230            'Content-Type', 'application/pdf')
Note: See TracChangeset for help on using the changeset viewer.