Merge pull request #1425 from zvolsky/_plugin_failure

F redirect in admin/default/design (install of plugin)
This commit is contained in:
mdipierro
2016-08-16 18:50:09 -05:00
committed by GitHub

View File

@@ -1087,11 +1087,11 @@ def design():
redirect(URL('design', args=app))
else:
session.flash = \
T('unable to create application "%s"', request.vars.filename)
redirect(URL(r=request))
T('unable to install plugin "%s"', filename)
redirect(URL(r=request, args=app))
elif isinstance(request.vars.pluginfile, str):
session.flash = T('plugin not specified')
redirect(URL(r=request))
redirect(URL(r=request, args=app))
# If we have only pyc files it means that
# we cannot design