From 16b11c7ef26e07166e16bf4ee7b558d4f91a726a Mon Sep 17 00:00:00 2001 From: zvolsky Date: Tue, 16 Aug 2016 13:28:29 +0200 Subject: [PATCH 1/2] F redirect in admin/default/design (install of plugin) --- applications/admin/controllers/default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index bdadcf2b..95c7d842 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -1088,10 +1088,10 @@ def design(): else: session.flash = \ T('unable to create application "%s"', request.vars.filename) - redirect(URL(r=request)) + 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 From 9e5bf2bf03c1dd82234d955e41c5028e547834ee Mon Sep 17 00:00:00 2001 From: zvolsky Date: Tue, 16 Aug 2016 13:38:13 +0200 Subject: [PATCH 2/2] F error message in admin/default/design (install of plugin) --- applications/admin/controllers/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 95c7d842..86f315c0 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -1087,7 +1087,7 @@ def design(): redirect(URL('design', args=app)) else: session.flash = \ - T('unable to create application "%s"', request.vars.filename) + 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')