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

Allow rendering of any form / printout in deferred mode

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31183 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ec6b2c9
......@@ -236,11 +236,21 @@ for k, v in kw.items() :\n
if v not in (None, [], ()) :\n
clean_kw[k] = kw[k]\n
\n
\n
# Handle deferred style\n
if clean_kw.get(\'deferred_style\', 0):\n
clean_kw[\'deferred_portal_skin\'] = clean_kw.get(\'portal_skin\', None)\n
# XXX Hardcoded Deferred style name\n
clean_kw[\'portal_skin\'] = \'Deferred\'\n
\n
dialog_form = getattr(context, dialog_method)\n
page_template = getattr(dialog_form, \'pt\', None)\n
# If the action form has report_view as it\'s method, it \n
if page_template != \'report_view\':\n
# use simple wrapper\n
clean_kw[\'deferred_style_dialog_method\'] = dialog_method\n
request.set(\'deferred_style_dialog_method\', dialog_method)\n
dialog_method = \'Base_activateSimpleView\'\n
\n
url_params_string = make_query(clean_kw)\n
\n
......@@ -376,10 +386,11 @@ return request.RESPONSE.redirect(redirect_url)\n
<string>uids</string>
<string>selected_uids</string>
<string>clean_kw</string>
<string>dialog_form</string>
<string>page_template</string>
<string>url_params_string</string>
<string>new_skin_name</string>
<string>deferred_portal_skin</string>
<string>dialog_form</string>
<string>_apply_</string>
<string>redirect_url</string>
</tuple>
......
1395
\ No newline at end of file
1396
\ 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