update docstring, xml escape exception description stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 02 Nov 2009 16:10:03 +0100
branchstable
changeset 3789 fb22b55f80f8
parent 3788 3d5abcd7c852
child 3790 34fdb8fb49d1
update docstring, xml escape exception description
utils.py
web/views/idownloadable.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:
--- 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('<div class="error">%s</div>' % msg)
         self.w(u'</div>')