# HG changeset patch # User Aurelien Campeas # Date 1257174603 -3600 # Node ID fb22b55f80f88f215fa494c65c3827477eb136d9 # Parent 3d5abcd7c85206daacfb2abceb14f44b2c849f7f update docstring, xml escape exception description diff -r 3d5abcd7c852 -r fb22b55f80f8 utils.py --- a/utils.py Sun Nov 01 21:40:03 2009 +0100 +++ b/utils.py Mon Nov 02 16:10:03 2009 +0100 @@ -337,7 +337,7 @@ def can_do_pdf_conversion(__answer=[None]): """pdf conversion depends on - * pyxmltrf (python package) + * pysixt (python package) * fop 0.9x """ if __answer[0] is not None: diff -r 3d5abcd7c852 -r fb22b55f80f8 web/views/idownloadable.py --- a/web/views/idownloadable.py Sun Nov 01 21:40:03 2009 +0100 +++ b/web/views/idownloadable.py Mon Nov 02 16:10:03 2009 +0100 @@ -113,7 +113,7 @@ except TransformError: pass except Exception, ex: - msg = self.req._("can't display data, unexpected error: %s") % ex + msg = self.req._("can't display data, unexpected error: %s") % xml_escape(str(ex)) self.w('
%s
' % msg) self.w(u'')