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 @@ ...@@ -68,10 +68,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n <value> <string>context.getPortalObject().changeSkin(\'Print\')\n
\n return getattr(context, form_id)(REQUEST=container.REQUEST)\n
redirect_url = \'%s?%s\' % ( context.absolute_url()+\'/\'+form_id, \'portal_skin=Print\')\n
return request[ \'RESPONSE\' ].redirect( redirect_url )\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -117,9 +115,8 @@ return request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -117,9 +115,8 @@ return request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>form_id</string> <string>form_id</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>getattr</string>
<string>redirect_url</string> <string>container</string>
<string>_getitem_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
413 414
\ 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