From 47feac1488e1da77c3ff803febfcb5e21b434ad6 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sat, 9 Feb 2008 20:09:29 +0000
Subject: [PATCH] Added allowed and hidden content types so that OOoDocument
 types can be converted to HTML with populateContent

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19210 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../allowed_content_types.xml                    |  5 +++++
 .../hidden_content_type_list.xml                 | 16 ++++++++++++++++
 bt5/erp5_dms/bt/revision                         |  2 +-
 ...emplate_portal_type_allowed_content_type_list |  5 +++++
 ...template_portal_type_hidden_content_type_list | 10 +++++++++-
 5 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_dms/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_dms/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
index c7370586dc..833ea125ec 100644
--- a/bt5/erp5_dms/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
+++ b/bt5/erp5_dms/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
@@ -22,6 +22,7 @@
   <item>Spreadsheet</item>
  </portal_type>
  <portal_type id="Drawing">
+  <item>Web Page</item>
   <item>Role Definition</item>
   <item>Image</item>
  </portal_type>
@@ -42,14 +43,18 @@
   <item>Role Definition</item>
  </portal_type>
  <portal_type id="Presentation">
+  <item>Web Page</item>
   <item>Role Definition</item>
   <item>Image</item>
  </portal_type>
  <portal_type id="Spreadsheet">
   <item>Role Definition</item>
+  <item>Web Page</item>
+  <item>Image</item>
  </portal_type>
  <portal_type id="Text">
   <item>Image</item>
+  <item>Web Page</item>
   <item>Role Definition</item>
  </portal_type>
  <portal_type id="URL Crawler">
diff --git a/bt5/erp5_dms/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml b/bt5/erp5_dms/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
index ed41e9acaa..18552b4b06 100644
--- a/bt5/erp5_dms/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
+++ b/bt5/erp5_dms/PortalTypeHiddenContentTypeTemplateItem/hidden_content_type_list.xml
@@ -10,4 +10,20 @@
   <item>Image</item>
   <item>Presentation</item>
  </portal_type>
+ <portal_type id="Drawing">
+  <item>Web Page</item>
+  <item>Image</item>
+ </portal_type>
+ <portal_type id="Presentation">
+  <item>Image</item>
+  <item>Web Page</item>
+ </portal_type>
+ <portal_type id="Spreadsheet">
+  <item>Image</item>
+  <item>Web Page</item>
+ </portal_type>
+ <portal_type id="Text">
+  <item>Image</item>
+  <item>Web Page</item>
+ </portal_type>
 </hidden_content_type_list>
\ No newline at end of file
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index 7b37641338..f08bce7b1c 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-836
\ No newline at end of file
+841
\ No newline at end of file
diff --git a/bt5/erp5_dms/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_dms/bt/template_portal_type_allowed_content_type_list
index 806ab38886..230160764b 100644
--- a/bt5/erp5_dms/bt/template_portal_type_allowed_content_type_list
+++ b/bt5/erp5_dms/bt/template_portal_type_allowed_content_type_list
@@ -16,6 +16,7 @@ Document Module | Spreadsheet
 Document Module | Text
 Drawing | Image
 Drawing | Role Definition
+Drawing | Web Page
 External Source Module | RSS Feed
 External Source Module | URL Crawler
 File | Role Definition
@@ -25,9 +26,13 @@ Image | Role Definition
 PDF | Role Definition
 Presentation | Image
 Presentation | Role Definition
+Presentation | Web Page
+Spreadsheet | Image
 Spreadsheet | Role Definition
+Spreadsheet | Web Page
 Text | Image
 Text | Role Definition
+Text | Web Page
 URL Crawler | Drawing
 URL Crawler | File
 URL Crawler | Image
diff --git a/bt5/erp5_dms/bt/template_portal_type_hidden_content_type_list b/bt5/erp5_dms/bt/template_portal_type_hidden_content_type_list
index 322def814b..ea2b2c238e 100644
--- a/bt5/erp5_dms/bt/template_portal_type_hidden_content_type_list
+++ b/bt5/erp5_dms/bt/template_portal_type_hidden_content_type_list
@@ -6,4 +6,12 @@ Contribution Tool | PDF
 Contribution Tool | Presentation
 Contribution Tool | Spreadsheet
 Contribution Tool | Text
-Contribution Tool | Web Page
\ No newline at end of file
+Contribution Tool | Web Page
+Drawing | Image
+Drawing | Web Page
+Presentation | Image
+Presentation | Web Page
+Spreadsheet | Image
+Spreadsheet | Web Page
+Text | Image
+Text | Web Page
\ No newline at end of file
-- 
2.30.9