Ignore:
Timestamp:
24 Jun 2017, 09:21:59 (7 years ago)
Author:
Henrik Bettermann
Message:

Make pdf page orientation customizable.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

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

    r14685 r14702  
    33253325        students_utils = getUtility(IStudentsUtils)
    33263326        return students_utils.renderPDFCourseticketsOverview(
    3327             self, session, self.data(session), lecturers)
     3327            self, session, self.data(session), lecturers, 'landscape')
    33283328
    33293329class ExportJobContainerOverview(KofaPage):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r14684 r14702  
    156156        """
    157157
    158     def renderPDFCourseticketsOverview(view, session, data, lecturers):
     158    def renderPDFCourseticketsOverview(
     159                  view, session, data, lecturers, orientation):
    159160        """Render pdf slip of course tickets for a lecturer.
    160161        """
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14596 r14702  
    968968
    969969    def renderPDFCourseticketsOverview(
    970             self, view, session, data, lecturers):
     970            self, view, session, data, lecturers, orientation):
    971971        """Render pdf slip of course tickets for a lecturer.
    972972        """
     
    974974            view.context.code, session, view.request.principal.id)
    975975        session = academic_sessions_vocab.getTerm(session).title
    976         creator = getUtility(IPDFCreator, name='landscape')
     976        creator = getUtility(IPDFCreator, name=orientation)
    977977        style = getSampleStyleSheet()
    978978        pdf_data = [Paragraph(
Note: See TracChangeset for help on using the changeset viewer.