From 6320de77ae61e9878890f49a4cfe3400e585c342 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sun, 18 Mar 2007 20:35:10 +0000
Subject: [PATCH] Acquire local roles on Career and Assignment. Set default
 icon for Image.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13489 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Assignment.xml               | 20 ++++-
 .../portal_types/Career.xml                   | 14 ++++
 .../portal_types/Image.xml                    | 75 +++++++++++++++++++
 3 files changed, 108 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Assignment.xml b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Assignment.xml
index 2d175f01ec..48c1322703 100644
--- a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Assignment.xml
+++ b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Assignment.xml
@@ -42,6 +42,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>
@@ -56,7 +60,7 @@
         </item>
         <item>
             <key> <string>content_icon</string> </key>
-            <value> <string>order_icon.gif</string> </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>content_meta_type</string> </key>
@@ -74,6 +78,12 @@
             <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>
@@ -84,6 +94,14 @@
             <key> <string>id</string> </key>
             <value> <string>Assignment</string> </value>
         </item>
+        <item>
+            <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/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Career.xml b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Career.xml
index fe440a7f7f..ad2d5447bd 100644
--- a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Career.xml
+++ b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Career.xml
@@ -42,6 +42,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>
@@ -74,6 +78,12 @@
             <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>
@@ -88,6 +98,10 @@
             <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/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
index 37a7312a74..102e04b6e1 100644
--- a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
+++ b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
@@ -30,6 +30,31 @@
               <dictionary/>
             </value>
         </item>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_property_domain_dict</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>short_title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
@@ -96,6 +121,10 @@
             <key> <string>init_script</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>isIndexable</string> </key>
+            <value> <int>0</int> </value>
+        </item>
         <item>
             <key> <string>permission</string> </key>
             <value> <string></string> </value>
@@ -113,4 +142,50 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.ERP5Type.TranslationProviderBase</string>
+          <string>TranslationInformation</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_content</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>short_title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.ERP5Type.TranslationProviderBase</string>
+          <string>TranslationInformation</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>domain_name</string> </key>
+            <value> <string>erp5_content</string> </value>
+        </item>
+        <item>
+            <key> <string>property_name</string> </key>
+            <value> <string>title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
-- 
2.30.9