Changeset 9555 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 6 Nov 2012, 10:54:46 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9553 r9555 639 639 return 640 640 641 def _sig InFooter(self):641 def _sigsInFooter(self): 642 642 isStudent = getattr( 643 643 self.request.principal, 'user_type', None) == 'student' 644 644 if not isStudent and self.context.state in (CLEARED, ): 645 return True 645 return (_('Date, Student Signature'), 646 _('Date, Clearance Officer Signature'), 647 ) 646 648 return False 647 649 … … 653 655 self, 'clearance_slip.pdf', 654 656 self.context.student, studentview, signatures=self._signatures(), 655 sig _in_footer=self._sigInFooter())657 sigs_in_footer=self._sigsInFooter()) 656 658 657 659 class StudentClearanceManageFormPage(KofaEditFormPage): -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9550 r9555 506 506 def renderPDF(self, view, filename='slip.pdf', student=None, 507 507 studentview=None, tableheader=None, tabledata=None, 508 note=None, signatures=None, sig _in_footer=False,508 note=None, signatures=None, sigs_in_footer=(), 509 509 show_scans=True): 510 510 """Render pdf slips for various pages. … … 559 559 560 560 # Insert signatures 561 if signatures and not sig _in_footer:561 if signatures and not sigs_in_footer: 562 562 data.append(Spacer(1, 20)) 563 563 signaturetable = get_signature_table(signatures) … … 569 569 pdf_stream = creator.create_pdf( 570 570 data, None, doc_title, author=author, footer=footer_text, 571 note=note, sig _in_footer=sig_in_footer)571 note=note, sigs_in_footer=sigs_in_footer) 572 572 except IOError: 573 573 view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.