From 16b30efdbab3b6e7f1bb620ceb83757e9b6e522e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 29 Oct 2009 14:06:03 +0000
Subject: [PATCH] This script was not working with new style actions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30107 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/Base_fixDialogActions.xml             | 7 ++++---
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision        | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.xml
index 60a9fe1f3e..5d78e2b6f5 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_fixDialogActions.xml
@@ -80,8 +80,9 @@ for ai in print_action_list:\n
   ai_copy = ai.copy()\n
   # this is quite low level. It may require to be done from file system code in\n
   # the future.\n
-  ai_copy[\'original_url\'] = ai_copy[\'url\']\n
-  ai_copy[\'url\'] = addDialogIfNeeded(ai_copy[\'url\'])\n
+  ai_copy.update(dict(\n
+                    original_url=ai_copy[\'url\'],\n
+                    url=addDialogIfNeeded(ai_copy[\'url\'])))\n
   new_print_action_list.append( ai_copy )\n
 \n
 return new_print_action_list\n
@@ -133,7 +134,7 @@ return new_print_action_list\n
                             <string>_getiter_</string>
                             <string>ai</string>
                             <string>ai_copy</string>
-                            <string>_write_</string>
+                            <string>dict</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index c5316a94dd..9a943a2366 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-848
\ No newline at end of file
+849
\ No newline at end of file
-- 
2.30.9