Ignore:
Timestamp:
14 Feb 2013, 07:55:54 (12 years ago)
Author:
Henrik Bettermann
Message:

In Okene the pdf logo depends on the context. Therefore we have to pass the student and applicant object to create_pdf.

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

Legend:

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

    r9555 r9946  
    180180        """
    181181    def create_pdf(data, headerline=None, title=None, author=None,
    182                    footer='', note=None, sigs_in_footer=[]):
     182                   footer='', note=None, sigs_in_footer=[], context=None):
    183183        """Create a PDF.
    184184
     
    203203
    204204        If no `title` is given, nothing will be rendered.
     205
     206        `context` could be the student or the applicant object. In customized
     207        packages this parameter can be used to create context-dependent
     208        pdf slips.
    205209        """
    206210
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py

    r9913 r9946  
    397397
    398398    def create_pdf(self, data, headerline=None, title=None, author=None,
    399                    footer='', note=None, sigs_in_footer=[], topMargin=1.5):
     399                   footer='', note=None, sigs_in_footer=[], topMargin=1.5,
     400                   context=None):
    400401        """Returns a binary data stream which is a PDF document.
    401402        """
Note: See TracChangeset for help on using the changeset viewer.