From 9946cd95268cb37323465e41ad6d1922852e688a Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Mon, 12 Mar 2007 13:09:00 +0000
Subject: [PATCH] Set appropriate icon. Set document groups.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13358 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/File.xml                     | 22 +++++++++++++
 .../portal_types/Image.xml                    | 32 ++++++++++++++-----
 2 files changed, 46 insertions(+), 8 deletions(-)

diff --git a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/File.xml b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/File.xml
index 752126f2ed..76447fd52e 100644
--- a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/File.xml
+++ b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/File.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,16 @@
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple>
+                <string>document</string>
+                <string>file_document</string>
+                <string>my_document</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -84,6 +98,14 @@
             <key> <string>id</string> </key>
             <value> <string>File</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/Image.xml b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
index 1e26ac45f0..37a7312a74 100644
--- a/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
+++ b/bt5/erp5_base/PortalTypeTemplateItem/portal_types/Image.xml
@@ -30,18 +30,16 @@
               <dictionary/>
             </value>
         </item>
-        <item>
-            <key> <string>_owner</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
         <item>
             <key> <string>_roles</string> </key>
             <value>
               <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 +54,7 @@
         </item>
         <item>
             <key> <string>content_icon</string> </key>
-            <value> <string>document_icon.gif</string> </value>
+            <value> <string>image_icon.gif</string> </value>
         </item>
         <item>
             <key> <string>content_meta_type</string> </key>
@@ -64,7 +62,7 @@
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string>Document can contain text that can be formatted using \'Structured Text\'.or \'HTML\'. Text can be automatically translated through the use of\'message catalogs\' and provided to the user in multilple languages.</string> </value>
+            <value> <string></string> </value>
         </item>
         <item>
             <key> <string>factory</string> </key>
@@ -74,6 +72,16 @@
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple>
+                <string>document</string>
+                <string>file_document</string>
+                <string>my_document</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -84,6 +92,14 @@
             <key> <string>id</string> </key>
             <value> <string>Image</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>
-- 
2.30.9