Commit 51f5f428 authored by Jérome Perrin's avatar Jérome Perrin

sets the request variable to 'Print', because some skins uses it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15768 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f99a543
......@@ -68,8 +68,14 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.getPortalObject().changeSkin(\'Print\')\n
return getattr(context, form_id)(REQUEST=container.REQUEST)\n
<value> <string>portal = context.getPortalObject()\n
request = container.REQUEST\n
\n
portal.changeSkin(\'Print\')\n
# also sets the request variable, because some skins uses it\n
request.set(portal.portal_skins.getRequestVarname(), \'Print\')\n
\n
return getattr(context, form_id)(REQUEST=request)\n
</string> </value>
</item>
<item>
......@@ -115,8 +121,10 @@ return getattr(context, form_id)(REQUEST=container.REQUEST)\n
<string>form_id</string>
<string>_getattr_</string>
<string>context</string>
<string>getattr</string>
<string>portal</string>
<string>container</string>
<string>request</string>
<string>getattr</string>
</tuple>
</value>
</item>
......
417
\ No newline at end of file
418
\ 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