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.

File:
1 edited

Legend:

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

    r9944 r9946  
    582582        pdf_stream = creator.create_pdf(
    583583            data, None, doc_title, author=author, footer=footer_text,
    584             note=None)
     584            note=None, context=student)
    585585        return pdf_stream
    586586
     
    666666            pdf_stream = creator.create_pdf(
    667667                data, None, doc_title, author=author, footer=footer_text,
    668                 note=note, sigs_in_footer=sigs_in_footer, topMargin=topMargin)
     668                note=note, sigs_in_footer=sigs_in_footer, topMargin=topMargin,
     669                context=student)
    669670        except IOError:
    670671            view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.