Ignore:
Timestamp:
30 May 2018, 20:20:50 (7 years ago)
Author:
Henrik Bettermann
Message:

Column width must be customizable too.

File:
1 edited

Legend:

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

    r15033 r15036  
    122122            ]
    123123
     124    @property
     125    def col_width(self):
     126        return [1*cm, 4*cm, 5*cm] + [1*cm] * len(self.certcourses)
    124127
    125128    @property
     
    248251            table_data[level] = tbl_data_to_table(
    249252                self.data[level], self.certcourses[level])
    250         col_widths = [1*cm, 4*cm, 5*cm] + [1*cm] * len(self.certcourses)
    251253        pdf_data = [Paragraph('<font size=%s><b>%s - Report %s</b></font>'
    252254                              % (self.fontsize, self.creation_dt_string, job_id),
     
    274276                Table(table_data[level],
    275277                      style=self.table_style,
    276                       colWidths=col_widths)]
     278                      colWidths=self.col_width)]
    277279        pdf_data.append(Spacer(1, 20))
    278280        if self.signatures:
Note: See TracChangeset for help on using the changeset viewer.