Changeset 15036 for main/waeup.kofa


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

Column width must be customizable too.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r14952 r15036  
    117117        self.assertEqual(pdf[:8], '%PDF-1.4')
    118118        # Copy te file to samples_dir
    119         path = os.path.join(samples_dir(), 'aplication_slip.pdf')
     119        path = os.path.join(samples_dir(), 'application_slip.pdf')
    120120        open(path, 'wb').write(pdf)
    121         print "Sample PDF aplication_slip.pdf written to %s" % path
     121        print "Sample PDF application_slip.pdf written to %s" % path
    122122        # Check if there is an application slip link in UI
    123123        self.assertTrue('Application Slip' in self.browser.contents)
  • 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.