Ignore:
Timestamp:
19 Oct 2016, 10:09:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Flash reportlab error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r14216 r14217  
    2121import os
    2222import grok
     23from cgi import escape
    2324from copy import deepcopy
    2425from StringIO import StringIO
     
    482483            view.flash('Error in image file.')
    483484            return view.redirect(view.url(view.context))
    484         except LayoutError:
    485             view.flash('Text fields too long. PDF file cannot be created.')
     485        except LayoutError, err:
     486            view.flash(
     487                'PDF file could not be created. Reportlab error message: %s'
     488                % escape(err.message),
     489                type="danger")
    486490            return view.redirect(view.url(view.context))
    487491        if mergefiles:
Note: See TracChangeset for help on using the changeset viewer.