From 78a64bcade304895e6ab39ac3923fe70fbdb20c6 Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 20 Mar 2008 11:11:31 +0000
Subject: [PATCH] Removed content type registry setting. erp5_core will
 provides a good enough set by default.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20071 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/testIngestion.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/product/ERP5OOo/tests/testIngestion.py b/product/ERP5OOo/tests/testIngestion.py
index 9afb7ea102..38df5ddf52 100644
--- a/product/ERP5OOo/tests/testIngestion.py
+++ b/product/ERP5OOo/tests/testIngestion.py
@@ -109,7 +109,6 @@ class TestIngestion(ERP5TypeTestCase):
     self.setSystemPreference()
     self.setSimulatedNotificationScript()
     self.setTools()
-    self.setContentTypeRegistry()
 
   def beforeTearDown(self):
     self.portal.portal_caches.clearAllCache()
@@ -142,16 +141,6 @@ class TestIngestion(ERP5TypeTestCase):
     if getattr(self.portal, 'portal_transforms', None) is None:
       self.portal.manage_addProduct['PortalTransforms'].manage_addTool(type='Portal Transforms')
 
-  def setContentTypeRegistry(self):
-    content_type_registry = self.portal.content_type_registry
-    predicate_id = 'Ingested Document'
-    if predicate_id not in content_type_registry.predicate_ids:
-      content_type_registry.addPredicate(predicate_id, 'extension')
-      content_type_registry.predicates[predicate_id][0].edit('emx')
-      content_type_registry.assignTypeName(predicate_id,
-                                            'Document Ingestion Message')
-      content_type_registry.reorderPredicate(predicate_id, 0)
-
   ##################################
   ##  Useful methods
   ##################################
-- 
2.30.9