From 51f5f42862d291ad33192747762ab191ce7b9add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 21 Aug 2007 14:11:58 +0000 Subject: [PATCH] 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 --- .../portal_skins/erp5_core/Base_printPdf.xml | 14 +++++++++++--- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_printPdf.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_printPdf.xml index c20fb0c3f8..32f1c7b546 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_printPdf.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_printPdf.xml @@ -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> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index e04c4148a6..2da5673937 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -417 \ No newline at end of file +418 \ No newline at end of file -- 2.30.9