From 27b18caaee86ce334df5ca163ea6c63eaa8811a5 Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Mon, 10 Dec 2007 12:32:00 +0000
Subject: [PATCH] 2007-12-10 Yusei * Hide document tab on person document if
 erp5_dms is installed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18171 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Person/document_view.xml     | 34 +++++++++++++------
 bt5/erp5_base/bt/change_log                   |  3 ++
 bt5/erp5_base/bt/revision                     |  2 +-
 3 files changed, 27 insertions(+), 12 deletions(-)

diff --git a/bt5/erp5_base/ActionTemplateItem/portal_types/Person/document_view.xml b/bt5/erp5_base/ActionTemplateItem/portal_types/Person/document_view.xml
index 4c3e822544..e319ba4aa4 100644
--- a/bt5/erp5_base/ActionTemplateItem/portal_types/Person/document_view.xml
+++ b/bt5/erp5_base/ActionTemplateItem/portal_types/Person/document_view.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.CMFCore.ActionInformation</string>
-          <string>ActionInformation</string>
-        </tuple>
-        <none/>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -30,7 +27,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -70,11 +69,8 @@
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.CMFCore.Expression</string>
-          <string>Expression</string>
-        </tuple>
-        <none/>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -86,4 +82,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python:getattr(portal, \'document_module\', None) is None</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_base/bt/change_log b/bt5/erp5_base/bt/change_log
index 5676b4b281..4e282ce0f6 100644
--- a/bt5/erp5_base/bt/change_log
+++ b/bt5/erp5_base/bt/change_log
@@ -1,3 +1,6 @@
+2007-12-10 Yusei
+* Hide document tab on person document if erp5_dms is installed.
+
 2007-11-19 Yusei
 * switch off acquire_local_roles on Assignment, Currency, Bank Account.
 
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index ce83bd94b3..9754915269 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-258
\ No newline at end of file
+259
\ No newline at end of file
-- 
2.30.9