Changeset 15694


Ignore:
Timestamp:
20 Oct 2019, 19:15:48 (5 years ago)
Author:
Henrik Bettermann
Message:

Enable signatures on course registration slip.

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

Legend:

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

    r15685 r15694  
    15851585        return tabletitle
    15861586
     1587    def _signatures(self):
     1588        return ()
     1589
    15871590    def render(self):
    15881591        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     
    16191622            tableheader=tableheader,
    16201623            tabledata=tabledata,
    1621             omit_fields=self.omit_fields
     1624            omit_fields=self.omit_fields,
     1625            signatures=self._signatures(),
    16221626            )
    16231627
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r15664 r15694  
    27362736        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    27372737        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     2738        path = os.path.join(samples_dir(), 'course_registration_slip.pdf')
     2739        open(path, 'wb').write(self.browser.contents)
     2740        print "Sample PDF course_registration_slip.pdf written to %s" % path
    27382741        # Students can remove course tickets
    27392742        self.browser.open(self.student_path + '/studycourse/200/edit')
Note: See TracChangeset for help on using the changeset viewer.