Ignore:
Timestamp:
4 Feb 2020, 15:26:40 (5 years ago)
Author:
Henrik Bettermann
Message:

Enable page breaks.

File:
1 edited

Legend:

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

    r15979 r15984  
    2929from reportlab.platypus import Paragraph, Image, Table, Spacer
    3030from reportlab.platypus.doctemplate import LayoutError
     31from reportlab.platypus.flowables import PageBreak
    3132from zope.event import notify
    3233from zope.schema.interfaces import ConstraintNotSatisfied
     
    815816            for i in range(len(view.tabletitle)):
    816817                if tabledata[i] and tableheader[i]:
    817                     #data.append(PageBreak())
     818                    tabletitle = view.tabletitle[i]
     819                    if tabletitle.startswith('_PB_'):
     820                        data.append(PageBreak())
     821                        tabletitle = view.tabletitle[i].strip('_PB_')
    818822                    #data.append(Spacer(1, 20))
    819                     data.append(Paragraph(view.tabletitle[i], HEADING_STYLE))
     823                    data.append(Paragraph(tabletitle, HEADING_STYLE))
    820824                    data.append(Spacer(1, 8))
    821825                    contenttable = render_table_data(tableheader[i],tabledata[i])
Note: See TracChangeset for help on using the changeset viewer.