Ignore:
Timestamp:
23 Sep 2018, 05:33:34 (6 years ago)
Author:
Henrik Bettermann
Message:

Adjust CustomExportPDFTranscriptSlip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r14902 r15164  
    3737from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID,
    3838    CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED,
    39     GRADUATED, TRANSCRIPT, FORBIDDEN_POSTGRAD_TRANS)
     39    GRADUATED, FORBIDDEN_POSTGRAD_TRANS)
    4040from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
    4141from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS
     
    544544    """
    545545
    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 ()
    552552
    553553    #def _signatures(self):
     
    576576                         ]
    577577
    578         return students_utils.renderPDFTranscript(
     578        pdfstream = students_utils.renderPDFTranscript(
    579579            self, 'transcript.pdf',
    580580            self.context.student, studentview,
     
    583583            signatures=self._signatures(),
    584584            sigs_in_footer=self._sigsInFooter(),
     585            digital_sigs=self._digital_sigs(),
     586            save_file=self._save_file(),
    585587            )
     588        if not pdfstream:
     589            self.redirect(self.url(self.context.student))
     590            return
     591        return pdfstream
    586592
    587593class CustomExportPDFBedTicketSlip(NigeriaExportPDFBedTicketSlip):
Note: See TracChangeset for help on using the changeset viewer.