Ignore:
Timestamp:
8 Mar 2017, 11:58:40 (8 years ago)
Author:
Henrik Bettermann
Message:

Enable customization of footer.

File:
1 edited

Legend:

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

    r14609 r14610  
    132132    def title(self):
    133133        return translate(_('Level Report'))
     134
     135    @property
     136    def right_footer(self):
     137        return self.title + ' - %s -' % self.session
    134138
    135139    def _excluded(self, level_obj):
     
    269273        pdf_data += [
    270274            Table(table_data, style=TABLE_STYLE, colWidths=col_widths)]
    271         doc_title = self.title
    272275
    273276        pdf_data.append(Spacer(1, 40))
     
    278281
    279282        pdf = creator.create_pdf(
    280             pdf_data, None, doc_title, self.author,
    281             doc_title + ' - %s -' % self.session,
    282             note = self.note
     283            pdf_data, None, self.title, self.author,
     284            self.right_footer, note = self.note
    283285            )
    284286        return pdf
Note: See TracChangeset for help on using the changeset viewer.