[Erp5-report] r11223 - in /erp5/trunk/products/ERP5Type: CopySupport.py Document/Folder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 9 11:52:05 CET 2006


Author: jerome
Date: Thu Nov  9 11:52:02 2006
New Revision: 11223

URL: http://svn.erp5.org?rev=11223&view=rev
Log:
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.


Modified:
    erp5/trunk/products/ERP5Type/CopySupport.py
    erp5/trunk/products/ERP5Type/Document/Folder.py

Modified: erp5/trunk/products/ERP5Type/CopySupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CopySupport.py?rev=11223&r1=11222&r2=11223&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CopySupport.py (original)
+++ erp5/trunk/products/ERP5Type/CopySupport.py Thu Nov  9 11:52:02 2006
@@ -30,9 +30,9 @@
 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
 

Modified: erp5/trunk/products/ERP5Type/Document/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Document/Folder.py?rev=11223&r1=11222&r2=11223&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Document/Folder.py (original)
+++ erp5/trunk/products/ERP5Type/Document/Folder.py Thu Nov  9 11:52:02 2006
@@ -60,7 +60,9 @@
 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()




More information about the Erp5-report mailing list