Commit 99480753 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not use PortalFolder._verifyObjectPaste, but BaseTool._verifyObjectPaste....

Do not use PortalFolder._verifyObjectPaste, but BaseTool._verifyObjectPaste. PortalFolder is not a base class in this class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16868 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5978c51
......@@ -37,7 +37,6 @@ from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile, PersistentMapping
from OFS.Folder import Folder as OFS_Folder
from Products.ERP5Type import Permissions
from Products.CMFCore.PortalFolder import PortalFolder
from Products.ERP5Type.CopySupport import CopyContainer
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Document import newTempBase
......@@ -73,8 +72,9 @@ class CategoryTool(CopyContainer, CMFCategoryTool, BaseTool):
allowedContentTypes = BaseTool.allowedContentTypes
getVisibleAllowedContentTypeList = BaseTool.getVisibleAllowedContentTypeList
# patch, so that we are able to rename base categories
_verifyObjectPaste = PortalFolder._verifyObjectPaste
# Override this method to resolve an inheritance problem.
def _verifyObjectPaste(self, *args, **kw):
return BaseTool._verifyObjectPaste(self, *args, **kw)
all_meta_types = BaseTool.all_meta_types
......
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