From 9c927a3fd22352d06e6e5f0f656642fd30d7a943 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Mon, 17 Oct 2005 17:59:37 +0000 Subject: [PATCH] revert to previous state git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4065 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Document/Folder.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 1950f536c5..61ecf2dd21 100755 --- a/product/ERP5Type/Document/Folder.py +++ b/product/ERP5Type/Document/Folder.py @@ -71,8 +71,6 @@ class FolderMixIn(ExtensionClass.Base): new_id = str(container.generateNewId(id_group = id_group, default=default, method=method)) else: new_id = str(id) - if not container.allowedContentTypes(): - raise 'NoAllowedContentTypesError' if portal_type is None: portal_type = container.allowedContentTypes()[0].id self.portal_types.constructContent(type_name=portal_type, container=container, -- 2.30.9