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

use changeSkin('Print') instead of creating a new request by redirection

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15736 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3bfc6455
......@@ -68,10 +68,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n
\n
redirect_url = \'%s?%s\' % ( context.absolute_url()+\'/\'+form_id, \'portal_skin=Print\')\n
return request[ \'RESPONSE\' ].redirect( redirect_url )\n
<value> <string>context.getPortalObject().changeSkin(\'Print\')\n
return getattr(context, form_id)(REQUEST=container.REQUEST)\n
</string> </value>
</item>
<item>
......@@ -117,9 +115,8 @@ return request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>form_id</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>redirect_url</string>
<string>_getitem_</string>
<string>getattr</string>
<string>container</string>
</tuple>
</value>
</item>
......
413
\ No newline at end of file
414
\ 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