Commit 00fa04ce authored by Jérome Perrin's avatar Jérome Perrin

FolderMixIn cannot inherit from CopySupport.CopyContainer, because...

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
parent b43b1f20
...@@ -30,9 +30,9 @@ from Products.CMFCore.WorkflowCore import WorkflowException ...@@ -30,9 +30,9 @@ from Products.CMFCore.WorkflowCore import WorkflowException
from zLOG import LOG from zLOG import LOG
class CopyContainer: class CopyContainer:
""" """This class redefines the copy/paste methods which are required in ERP5 in
This class redefines the copy/paste methods relation with the ZSQLCatalog and CMFCategory. Class using class should also
which are required in ERP5 in relation with the ZSQLCatalog inherit from ERP5Type.Base
It is used as a mix-in to patch the default Zope behaviour It is used as a mix-in to patch the default Zope behaviour
......
...@@ -60,7 +60,9 @@ def dummyFilter(object,REQUEST=None): ...@@ -60,7 +60,9 @@ def dummyFilter(object,REQUEST=None):
def dummyTestAfter(object,REQUEST=None): def dummyTestAfter(object,REQUEST=None):
return [] return []
class FolderMixIn(ExtensionClass.Base, CopyContainer): class FolderMixIn(ExtensionClass.Base):
"""A mixin class for folder operations, add content, delete content etc.
"""
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment