From 151ee75f6b783c5ea52048cae0499fd94ec13519 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Fri, 15 Feb 2008 13:06:38 +0000
Subject: [PATCH] * Predicate portal type is not controlled by a workflow, so
 it should acquire local roles.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19329 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Predicate.xml                | 21 ++++++++++++++-----
 product/ERP5/bootstrap/erp5_core/bt/revision  |  2 +-
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
index f742cfaf1c..f2ade92623 100644
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Predicate.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
+        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -42,6 +39,10 @@
               <list/>
             </value>
         </item>
+        <item>
+            <key> <string>acquire_local_roles</string> </key>
+            <value> <int>1</int> </value>
+        </item>
         <item>
             <key> <string>allowed_content_types</string> </key>
             <value>
@@ -79,6 +80,12 @@ Other predicates must be implemented through scripts. \n
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -93,6 +100,10 @@ Other predicates must be implemented through scripts. \n
             <key> <string>init_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value> <string></string> </value>
+        </item>
         <item>
             <key> <string>property_sheet_list</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 5b3e043c52..8d75cc7df7 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-703
\ No newline at end of file
+705
\ No newline at end of file
-- 
2.30.9