Changeset 9946
- Timestamp:
- 14 Feb 2013, 07:55:54 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py
r9452 r9946 133 133 # append comments 134 134 data = self._addComments(data) 135 136 return creator.create_pdf(data, None, doc_title, note=self.note)135 return creator.create_pdf( 136 data, None, doc_title, note=self.note, context=self.context) -
main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py
r9555 r9946 180 180 """ 181 181 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): 183 183 """Create a PDF. 184 184 … … 203 203 204 204 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. 205 209 """ 206 210 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r9913 r9946 397 397 398 398 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): 400 401 """Returns a binary data stream which is a PDF document. 401 402 """ -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9944 r9946 582 582 pdf_stream = creator.create_pdf( 583 583 data, None, doc_title, author=author, footer=footer_text, 584 note=None )584 note=None, context=student) 585 585 return pdf_stream 586 586 … … 666 666 pdf_stream = creator.create_pdf( 667 667 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) 669 670 except IOError: 670 671 view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.