Commit e19adb91 authored by Jérome Perrin's avatar Jérome Perrin

support deferred style even if we are not redirecting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29945 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bd873cc
...@@ -253,6 +253,9 @@ if (not(can_redirect) or len(url_params_string) > 2000):\n ...@@ -253,6 +253,9 @@ if (not(can_redirect) or len(url_params_string) > 2000):\n
new_skin_name = clean_kw[\'portal_skin\']\n new_skin_name = clean_kw[\'portal_skin\']\n
context.getPortalObject().portal_skins.changeSkin(new_skin_name)\n context.getPortalObject().portal_skins.changeSkin(new_skin_name)\n
request.set(\'portal_skin\', new_skin_name)\n request.set(\'portal_skin\', new_skin_name)\n
deferred_portal_skin = clean_kw.get(\'deferred_portal_skin\')\n
if deferred_portal_skin:\n
request.set(\'deferred_portal_skin\', deferred_portal_skin)\n
\n \n
# If we cannot redirect, then call the form directly.\n # If we cannot redirect, then call the form directly.\n
dialog_form = getattr(context, dialog_method)\n dialog_form = getattr(context, dialog_method)\n
...@@ -375,6 +378,7 @@ return request.RESPONSE.redirect(redirect_url)\n ...@@ -375,6 +378,7 @@ return request.RESPONSE.redirect(redirect_url)\n
<string>clean_kw</string> <string>clean_kw</string>
<string>url_params_string</string> <string>url_params_string</string>
<string>new_skin_name</string> <string>new_skin_name</string>
<string>deferred_portal_skin</string>
<string>dialog_form</string> <string>dialog_form</string>
<string>_apply_</string> <string>_apply_</string>
<string>redirect_url</string> <string>redirect_url</string>
......
1347 1348
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment