From 92b4bc4f94a29a57dcf5454b29426b0d0a0efd8f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 19 Mar 2016 04:08:33 -0500 Subject: [PATCH] fixed #778 PRE(repr()) in admin, thanks Simone --- applications/admin/controllers/default.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 264f757a..afdee6c9 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -268,7 +268,7 @@ def site(): raise Exception("404 file not found") except Exception, e: session.flash = \ - DIV(T('Unable to download app because:'), PRE(str(e))) + DIV(T('Unable to download app because:'), PRE(repr(e))) redirect(URL(r=request)) fname = form_update.vars.url @@ -740,7 +740,7 @@ def edit(): B(ex_name), ' ' + T('at line %s', e.lineno), offset and ' ' + T('at char %s', offset) or '', - PRE(str(e))) + PRE(repr(e))) if data_or_revert and request.args[1] == 'modules': # Lets try to reload the modules try: @@ -751,7 +751,7 @@ def edit(): % (request.args[0], mopath)]) except Exception, e: response.flash = DIV( - T('failed to reload module because:'), PRE(str(e))) + T('failed to reload module because:'), PRE(repr(e))) edit_controller = None editviewlinks = None