From d9fc538b3440a2b807e4e7f924dc3299a006c343 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 1 Jul 2008 16:28:17 +0000
Subject: [PATCH] - sue generic initialisation of int_index and reference after
 cloning objects

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22179 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_pdm/TransformationOperation_afterClone.xml       | 8 ++------
 .../TransformationOptionalResource_afterClone.xml         | 8 ++------
 .../TransformationTransformedResource_afterClone.xml      | 8 ++------
 bt5/erp5_pdm/bt/revision                                  | 2 +-
 4 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOperation_afterClone.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOperation_afterClone.xml
index fca381c0d4..5371232a36 100644
--- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOperation_afterClone.xml
+++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOperation_afterClone.xml
@@ -65,10 +65,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>context.setReference(\'\')\n
-context.setIntIndex(None)\n
-\n
-context.TransformationOperation_init(*args,**kw)\n
+            <value> <string>context.Base_initIntIndexAndReference(*args,**kw)\n
 </string> </value>
         </item>
         <item>
@@ -119,10 +116,9 @@ context.TransformationOperation_init(*args,**kw)\n
                           <tuple>
                             <string>args</string>
                             <string>kw</string>
+                            <string>_apply_</string>
                             <string>_getattr_</string>
                             <string>context</string>
-                            <string>None</string>
-                            <string>_apply_</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_afterClone.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_afterClone.xml
index 60da14bb11..527315cf8a 100644
--- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_afterClone.xml
+++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_afterClone.xml
@@ -65,10 +65,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>context.setReference(\'\')\n
-context.setIntIndex(None)\n
-\n
-context.TransformationOptionalResource_init(*args,**kw)\n
+            <value> <string>context.Base_initIntIndexAndReference(*args,**kw)\n
 </string> </value>
         </item>
         <item>
@@ -119,10 +116,9 @@ context.TransformationOptionalResource_init(*args,**kw)\n
                           <tuple>
                             <string>args</string>
                             <string>kw</string>
+                            <string>_apply_</string>
                             <string>_getattr_</string>
                             <string>context</string>
-                            <string>None</string>
-                            <string>_apply_</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_afterClone.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_afterClone.xml
index 0fd0566eea..743042b2c5 100644
--- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_afterClone.xml
+++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_afterClone.xml
@@ -65,10 +65,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>context.setReference(\'\')\n
-context.setIntIndex(None)\n
-\n
-context.TransformationTransformedResource_init(*args,**kw)\n
+            <value> <string>context.Base_initIntIndexAndReference(*args,**kw)\n
 </string> </value>
         </item>
         <item>
@@ -119,10 +116,9 @@ context.TransformationTransformedResource_init(*args,**kw)\n
                           <tuple>
                             <string>args</string>
                             <string>kw</string>
+                            <string>_apply_</string>
                             <string>_getattr_</string>
                             <string>context</string>
-                            <string>None</string>
-                            <string>_apply_</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision
index a0b994e372..4129657509 100644
--- a/bt5/erp5_pdm/bt/revision
+++ b/bt5/erp5_pdm/bt/revision
@@ -1 +1 @@
-195
\ No newline at end of file
+196
\ No newline at end of file
-- 
2.30.9