From 5ea42019fa4a5eab28ffdf015f8bdeab5ace83c3 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sun, 9 Sep 2007 18:22:34 +0000
Subject: [PATCH] Added module types to module group. Added
 business_application base category to module types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16197 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../base_category_list.xml                      | 17 +++++++++++++++++
 .../portal_types/Campaign%20Module.xml          |  4 +++-
 .../portal_types/Event%20Module.xml             |  4 +++-
 .../portal_types/Meeting%20Module.xml           |  4 +++-
 .../Sale%20Opportunity%20Module.xml             |  4 +++-
 .../portal_types/Support%20Request%20Module.xml |  4 +++-
 bt5/erp5_crm/bt/revision                        |  2 +-
 .../bt/template_portal_type_base_category_list  |  5 +++++
 .../base_category_list.xml                      |  9 +++++++++
 .../portal_types/Bug%20Module.xml               | 16 ++++++++++++++++
 .../portal_types/Glossary%20Module.xml          |  4 +++-
 .../portal_types/Upload%20Module.xml            |  8 +++++++-
 bt5/erp5_forge/bt/revision                      |  2 +-
 .../bt/template_portal_type_base_category_list  |  5 ++++-
 14 files changed, 78 insertions(+), 10 deletions(-)
 create mode 100644 bt5/erp5_crm/PortalTypeBaseCategoryTemplateItem/base_category_list.xml

diff --git a/bt5/erp5_crm/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_crm/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
new file mode 100644
index 0000000000..925d3edd15
--- /dev/null
+++ b/bt5/erp5_crm/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -0,0 +1,17 @@
+<base_category_list>
+ <portal_type id="Campaign Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Event Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Meeting Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Sale Opportunity Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Support Request Module">
+  <item>business_application</item>
+ </portal_type>
+</base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Campaign%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Campaign%20Module.xml
index 9fe1fe9311..2401eb309f 100644
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Campaign%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Campaign%20Module.xml
@@ -81,7 +81,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
index 2cf970d99b..de328294a2 100644
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Event%20Module.xml
@@ -100,7 +100,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Meeting%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Meeting%20Module.xml
index d30527eaef..75e1098d3b 100644
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Meeting%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Meeting%20Module.xml
@@ -81,7 +81,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
index a3735d93ba..dc11ea245d 100644
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Sale%20Opportunity%20Module.xml
@@ -100,7 +100,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
index 48aba5806b..e53785e454 100644
--- a/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
+++ b/bt5/erp5_crm/PortalTypeTemplateItem/portal_types/Support%20Request%20Module.xml
@@ -100,7 +100,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision
index efee1f88bb..e3f1e9b791 100644
--- a/bt5/erp5_crm/bt/revision
+++ b/bt5/erp5_crm/bt/revision
@@ -1 +1 @@
-78
\ No newline at end of file
+80
\ No newline at end of file
diff --git a/bt5/erp5_crm/bt/template_portal_type_base_category_list b/bt5/erp5_crm/bt/template_portal_type_base_category_list
index e69de29bb2..19c3c07bc2 100644
--- a/bt5/erp5_crm/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_crm/bt/template_portal_type_base_category_list
@@ -0,0 +1,5 @@
+Campaign Module | business_application
+Event Module | business_application
+Meeting Module | business_application
+Sale Opportunity Module | business_application
+Support Request Module | business_application
\ No newline at end of file
diff --git a/bt5/erp5_forge/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_forge/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
index 2e79ce95a3..7a33b3d1a8 100644
--- a/bt5/erp5_forge/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
+++ b/bt5/erp5_forge/PortalTypeBaseCategoryTemplateItem/base_category_list.xml
@@ -1,6 +1,15 @@
 <base_category_list>
+ <portal_type id="Bug Module">
+  <item>business_application</item>
+ </portal_type>
+ <portal_type id="Glossary Module">
+  <item>business_application</item>
+ </portal_type>
  <portal_type id="Glossary Term">
   <item>language</item>
   <item>business_field</item>
  </portal_type>
+ <portal_type id="Upload Module">
+  <item>business_application</item>
+ </portal_type>
 </base_category_list>
\ No newline at end of file
diff --git a/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Bug%20Module.xml b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Bug%20Module.xml
index b84e060e3f..56b1e0affd 100644
--- a/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Bug%20Module.xml
+++ b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Bug%20Module.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>
@@ -75,6 +79,14 @@ be a problem).</string> </value>
             <key> <string>filter_content_types</string> </key>
             <value> <int>1</int> </value>
         </item>
+        <item>
+            <key> <string>group_list</string> </key>
+            <value>
+              <tuple>
+                <string>module</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>hidden_content_type_list</string> </key>
             <value>
@@ -89,6 +101,10 @@ be a problem).</string> </value>
             <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_forge/PortalTypeTemplateItem/portal_types/Glossary%20Module.xml b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Glossary%20Module.xml
index 6080d098c4..d5655b198b 100644
--- a/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Glossary%20Module.xml
+++ b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Glossary%20Module.xml
@@ -82,7 +82,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Upload%20Module.xml b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Upload%20Module.xml
index 63bc45162b..84bff90a1e 100644
--- a/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Upload%20Module.xml
+++ b/bt5/erp5_forge/PortalTypeTemplateItem/portal_types/Upload%20Module.xml
@@ -81,7 +81,9 @@
         <item>
             <key> <string>group_list</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>module</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -98,6 +100,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_forge/bt/revision b/bt5/erp5_forge/bt/revision
index 05b9b66ffd..5755659621 100644
--- a/bt5/erp5_forge/bt/revision
+++ b/bt5/erp5_forge/bt/revision
@@ -1 +1 @@
-162
\ No newline at end of file
+163
\ No newline at end of file
diff --git a/bt5/erp5_forge/bt/template_portal_type_base_category_list b/bt5/erp5_forge/bt/template_portal_type_base_category_list
index d2d2e15a99..8aef1953b3 100644
--- a/bt5/erp5_forge/bt/template_portal_type_base_category_list
+++ b/bt5/erp5_forge/bt/template_portal_type_base_category_list
@@ -1,2 +1,5 @@
+Bug Module | business_application
+Glossary Module | business_application
 Glossary Term | business_field
-Glossary Term | language
\ No newline at end of file
+Glossary Term | language
+Upload Module | business_application
\ No newline at end of file
-- 
2.30.9