Changeset 14256 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 4 Nov 2016, 05:23:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r14213 r14256 25 25 from reportlab.lib.styles import getSampleStyleSheet 26 26 from reportlab.platypus import Paragraph, Image, Table, Spacer 27 from reportlab.platypus.doctemplate import LayoutError 27 28 from zope.event import notify 28 29 from zope.schema.interfaces import ConstraintNotSatisfied … … 800 801 view.flash('Error in image file.') 801 802 return view.redirect(view.url(view.context)) 803 except LayoutError, err: 804 view.flash( 805 'PDF file could not be created. Reportlab error message: %s' 806 % escape(err.message), 807 type="danger") 808 return view.redirect(view.url(view.context)) 802 809 return pdf_stream 803 810
Note: See TracChangeset for help on using the changeset viewer.