From dbacb04329c51a8c8cf5fff9518687a624af9ffb Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Thu, 4 Mar 2010 03:06:05 +0000
Subject: [PATCH] Add version field to Transformations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33349 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_pdm/Transformation_view.xml          |  1 +
 .../Transformation_view/my_version.xml        | 99 +++++++++++++++++++
 bt5/erp5_pdm/bt/change_log                    |  3 +
 bt5/erp5_pdm/bt/revision                      |  2 +-
 4 files changed, 104 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view/my_version.xml

diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view.xml
index 1958804c0a..33f0887381 100644
--- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view.xml
+++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view.xml
@@ -120,6 +120,7 @@
                     <key> <string>right</string> </key>
                     <value>
                       <list>
+                        <string>my_version</string>
                         <string>my_variation_base_category_list</string>
                         <string>my_comment</string>
                         <string>my_translated_validation_state_title</string>
diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view/my_version.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view/my_version.xml
new file mode 100644
index 0000000000..95d6ee3ae3
--- /dev/null
+++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Transformation_view/my_version.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>delegated_list</string> </key>
+            <value>
+              <list>
+                <string>description</string>
+              </list>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>my_version</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string>The Transformation Version</string> </value>
+                </item>
+                <item>
+                    <key> <string>field_id</string> </key>
+                    <value> <string>my_version</string> </value>
+                </item>
+                <item>
+                    <key> <string>form_id</string> </key>
+                    <value> <string>Rule_viewFieldLibrary</string> </value>
+                </item>
+                <item>
+                    <key> <string>target</string> </key>
+                    <value> <string>Click to edit the target</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_pdm/bt/change_log b/bt5/erp5_pdm/bt/change_log
index 1a1eb6d35e..4f0b38bb80 100644
--- a/bt5/erp5_pdm/bt/change_log
+++ b/bt5/erp5_pdm/bt/change_log
@@ -1,3 +1,6 @@
+2010-03-04 Nicolas Dumazet
+* Add version field to Transformations
+
 2010-03-03 yusei
 * Fix cell portal type names in matrix boxes. Internal Supply Cell must be used in Internal Supply Line.
 
diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision
index a21cae3648..9d3f41701a 100644
--- a/bt5/erp5_pdm/bt/revision
+++ b/bt5/erp5_pdm/bt/revision
@@ -1 +1 @@
-454
\ No newline at end of file
+455
\ No newline at end of file
-- 
2.30.9