Ignore:
Timestamp:
6 Nov 2012, 00:05:27 (12 years ago)
Author:
uli
Message:

Add sig_in_footer option for generated PDFs.

File:
1 edited

Legend:

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

    r9532 r9547  
    506506    def renderPDF(self, view, filename='slip.pdf', student=None,
    507507                  studentview=None, tableheader=None, tabledata=None,
    508                   note=None, signatures=None):
     508                  note=None, signatures=None, sig_in_footer=False):
    509509        """Render pdf slips for various pages.
    510510        """
     
    557557
    558558        # Insert signatures
    559         if signatures:
     559        if signatures and not sig_in_footer:
    560560            data.append(Spacer(1, 20))
    561561            signaturetable = get_signature_table(signatures)
     
    567567            pdf_stream = creator.create_pdf(
    568568                data, None, doc_title, author=author, footer=footer_text,
    569                 note=note)
     569                note=note, sig_in_footer=sig_in_footer)
    570570        except IOError:
    571571            view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.