Changeset 9948 for main/waeup.kofa/trunk
- Timestamp:
- 14 Feb 2013, 16:15:46 (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
r9946 r9948 133 133 # append comments 134 134 data = self._addComments(data) 135 return creator.create_pdf( 136 data, None, doc_title, note=self.note, context=self.context)135 136 return creator.create_pdf(data, None, doc_title, note=self.note) -
main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py
r9946 r9948 180 180 """ 181 181 def create_pdf(data, headerline=None, title=None, author=None, 182 footer='', note=None, sigs_in_footer=[] , context=None):182 footer='', note=None, sigs_in_footer=[]): 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 customized207 packages this parameter can be used to create context-dependent208 pdf slips.209 205 """ 210 206 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r9946 r9948 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, 400 context=None): 399 footer='', note=None, sigs_in_footer=[], topMargin=1.5): 401 400 """Returns a binary data stream which is a PDF document. 402 401 """ -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9946 r9948 582 582 pdf_stream = creator.create_pdf( 583 583 data, None, doc_title, author=author, footer=footer_text, 584 note=None , context=student)584 note=None) 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, 669 context=student) 668 note=note, sigs_in_footer=sigs_in_footer, topMargin=topMargin) 670 669 except IOError: 671 670 view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.