- Timestamp:
- 23 Sep 2018, 05:33:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r14902 r15164 37 37 from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID, 38 38 CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED, 39 GRADUATED, TRANSCRIPT,FORBIDDEN_POSTGRAD_TRANS)39 GRADUATED, FORBIDDEN_POSTGRAD_TRANS) 40 40 from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket 41 41 from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS … … 544 544 """ 545 545 546 def _sigsInFooter(self):547 isStudent = getattr(548 self.request.principal, 'user_type', None) == 'student'549 if not isStudent:550 return (_('D. R. (Exams & Records)'),_('Current Dean of Faculty'),)551 return ()546 #def _sigsInFooter(self): 547 # isStudent = getattr( 548 # self.request.principal, 'user_type', None) == 'student' 549 # if not isStudent: 550 # return (_('D. R. (Exams & Records)'),_('Current Dean of Faculty'),) 551 # return () 552 552 553 553 #def _signatures(self): … … 576 576 ] 577 577 578 returnstudents_utils.renderPDFTranscript(578 pdfstream = students_utils.renderPDFTranscript( 579 579 self, 'transcript.pdf', 580 580 self.context.student, studentview, … … 583 583 signatures=self._signatures(), 584 584 sigs_in_footer=self._sigsInFooter(), 585 digital_sigs=self._digital_sigs(), 586 save_file=self._save_file(), 585 587 ) 588 if not pdfstream: 589 self.redirect(self.url(self.context.student)) 590 return 591 return pdfstream 586 592 587 593 class CustomExportPDFBedTicketSlip(NigeriaExportPDFBedTicketSlip):
Note: See TracChangeset for help on using the changeset viewer.