From 20eb6735f0c0d8bf074146b0b8da4bb0aad711d0 Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Sat, 19 Apr 2008 00:09:20 +0000
Subject: [PATCH] 2008-4-18 yusei * Add workflow chain. * Add default view for
 Internet Protocol Address. (forgot to commit it before)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20684 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Internet%20Protocol%20Address/view.xml    | 83 +++++++++++++++++++
 .../workflow_chain_type.xml                   | 14 ++++
 .../bt/change_log                             |  4 +
 bt5/erp5_computer_immobilisation/bt/revision  |  2 +-
 .../bt/template_action_path_list              |  3 +-
 .../template_portal_type_workflow_chain_list  |  5 ++
 6 files changed, 109 insertions(+), 2 deletions(-)
 create mode 100644 bt5/erp5_computer_immobilisation/ActionTemplateItem/portal_types/Internet%20Protocol%20Address/view.xml
 create mode 100644 bt5/erp5_computer_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml

diff --git a/bt5/erp5_computer_immobilisation/ActionTemplateItem/portal_types/Internet%20Protocol%20Address/view.xml b/bt5/erp5_computer_immobilisation/ActionTemplateItem/portal_types/Internet%20Protocol%20Address/view.xml
new file mode 100644
index 0000000000..95a004c0c4
--- /dev/null
+++ b/bt5/erp5_computer_immobilisation/ActionTemplateItem/portal_types/Internet%20Protocol%20Address/view.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>View</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/InternetProtocolAddress_view</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_computer_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_computer_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
new file mode 100644
index 0000000000..0623689908
--- /dev/null
+++ b/bt5/erp5_computer_immobilisation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
@@ -0,0 +1,14 @@
+<workflow_chain>
+ <chain>
+  <type>Computer</type>
+  <workflow>edit_workflow, validation_workflow</workflow>
+ </chain>
+ <chain>
+  <type>Computer Partition</type>
+  <workflow>validation_workflow, edit_workflow</workflow>
+ </chain>
+ <chain>
+  <type>Internet Protocol Address</type>
+  <workflow>edit_workflow</workflow>
+ </chain>
+</workflow_chain>
\ No newline at end of file
diff --git a/bt5/erp5_computer_immobilisation/bt/change_log b/bt5/erp5_computer_immobilisation/bt/change_log
index 34f226c1df..d59a35305c 100644
--- a/bt5/erp5_computer_immobilisation/bt/change_log
+++ b/bt5/erp5_computer_immobilisation/bt/change_log
@@ -1,3 +1,7 @@
+2008-4-18 yusei
+* Add workflow chain.
+* Add default view for Internet Protocol Address. (forgot to commit it before)
+
 2008-4-17 yusei
 * Turned on acquire local role for Internet Protocol Address portal type.
 
diff --git a/bt5/erp5_computer_immobilisation/bt/revision b/bt5/erp5_computer_immobilisation/bt/revision
index e440e5c842..bf0d87ab1b 100644
--- a/bt5/erp5_computer_immobilisation/bt/revision
+++ b/bt5/erp5_computer_immobilisation/bt/revision
@@ -1 +1 @@
-3
\ No newline at end of file
+4
\ No newline at end of file
diff --git a/bt5/erp5_computer_immobilisation/bt/template_action_path_list b/bt5/erp5_computer_immobilisation/bt/template_action_path_list
index fb27fb0714..b8cbae72f9 100644
--- a/bt5/erp5_computer_immobilisation/bt/template_action_path_list
+++ b/bt5/erp5_computer_immobilisation/bt/template_action_path_list
@@ -1,4 +1,5 @@
 Computer Module | view
 Computer Partition | view
 Computer | computer_partition
-Computer | view
\ No newline at end of file
+Computer | view
+Internet Protocol Address | view
\ No newline at end of file
diff --git a/bt5/erp5_computer_immobilisation/bt/template_portal_type_workflow_chain_list b/bt5/erp5_computer_immobilisation/bt/template_portal_type_workflow_chain_list
index e69de29bb2..f1ee0da716 100644
--- a/bt5/erp5_computer_immobilisation/bt/template_portal_type_workflow_chain_list
+++ b/bt5/erp5_computer_immobilisation/bt/template_portal_type_workflow_chain_list
@@ -0,0 +1,5 @@
+Computer Partition | edit_workflow
+Computer Partition | validation_workflow
+Computer | edit_workflow
+Computer | validation_workflow
+Internet Protocol Address | edit_workflow
\ No newline at end of file
-- 
2.30.9