Ignore:
Timestamp:
23 Apr 2012, 11:56:06 (13 years ago)
Author:
uli
Message:

Support notes in generated PDFs.

File:
1 edited

Legend:

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

    r8244 r8257  
    311311        return available_beds[0]
    312312
    313     def renderPDF(self, view, filename='slip.pdf',
    314         student=None, studentview=None, tableheader=None, tabledata=None):
     313    def renderPDF(self, view, filename='slip.pdf', student=None,
     314                  studentview=None, tableheader=None, tabledata=None,
     315                  note=None):
    315316        """Render pdf slips for various pages.
    316317        """
     
    359360        try:
    360361            pdf_stream = creator.create_pdf(
    361                 data, None, doc_title, author=author, footer=footer_text)
     362                data, None, doc_title, author=author, footer=footer_text,
     363                note=note)
    362364        except IOError:
    363365            view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.