fixed #778 PRE(repr()) in admin, thanks Simone
This commit is contained in:
@@ -268,7 +268,7 @@ def site():
|
|||||||
raise Exception("404 file not found")
|
raise Exception("404 file not found")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
session.flash = \
|
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))
|
redirect(URL(r=request))
|
||||||
fname = form_update.vars.url
|
fname = form_update.vars.url
|
||||||
|
|
||||||
@@ -740,7 +740,7 @@ def edit():
|
|||||||
B(ex_name), ' ' + T('at line %s', e.lineno),
|
B(ex_name), ' ' + T('at line %s', e.lineno),
|
||||||
offset and ' ' +
|
offset and ' ' +
|
||||||
T('at char %s', offset) or '',
|
T('at char %s', offset) or '',
|
||||||
PRE(str(e)))
|
PRE(repr(e)))
|
||||||
if data_or_revert and request.args[1] == 'modules':
|
if data_or_revert and request.args[1] == 'modules':
|
||||||
# Lets try to reload the modules
|
# Lets try to reload the modules
|
||||||
try:
|
try:
|
||||||
@@ -751,7 +751,7 @@ def edit():
|
|||||||
% (request.args[0], mopath)])
|
% (request.args[0], mopath)])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
response.flash = DIV(
|
response.flash = DIV(
|
||||||
T('failed to reload module because:'), PRE(str(e)))
|
T('failed to reload module because:'), PRE(repr(e)))
|
||||||
|
|
||||||
edit_controller = None
|
edit_controller = None
|
||||||
editviewlinks = None
|
editviewlinks = None
|
||||||
|
|||||||
Reference in New Issue
Block a user