From 00fa04ce3ec7b042546439b730ab4413225d85d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 9 Nov 2006 10:52:02 +0000
Subject: [PATCH] FolderMixIn cannot inherit from CopySupport.CopyContainer,
 because CopyContainer only work if you also are an instance as Base.
 ERP5.ERP5Site is not an ERP5Type's CopyContainer, but a standard Zope one.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11223 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/CopySupport.py     | 6 +++---
 product/ERP5Type/Document/Folder.py | 4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/product/ERP5Type/CopySupport.py b/product/ERP5Type/CopySupport.py
index a5d98b4ae8..c0bf3856d6 100644
--- a/product/ERP5Type/CopySupport.py
+++ b/product/ERP5Type/CopySupport.py
@@ -30,9 +30,9 @@ from Products.CMFCore.WorkflowCore import WorkflowException
 from zLOG import LOG
 
 class CopyContainer:
-  """
-    This class redefines the copy/paste methods
-    which are required in ERP5 in relation with the ZSQLCatalog
+  """This class redefines the copy/paste methods  which are required in ERP5 in
+  relation with the ZSQLCatalog and CMFCategory. Class using class should also
+  inherit from ERP5Type.Base 
 
     It is used as a mix-in to patch the default Zope behaviour
 
diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py
index e35354d384..0292d01195 100644
--- a/product/ERP5Type/Document/Folder.py
+++ b/product/ERP5Type/Document/Folder.py
@@ -60,7 +60,9 @@ def dummyFilter(object,REQUEST=None):
 def dummyTestAfter(object,REQUEST=None):
   return []
 
-class FolderMixIn(ExtensionClass.Base, CopyContainer):
+class FolderMixIn(ExtensionClass.Base):
+  """A mixin class for folder operations, add content, delete content etc.
+  """
 
   # Declarative security
   security = ClassSecurityInfo()
-- 
2.30.9