From c67874eb093ec017c325f1583c147920d09e7b5e Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sat, 29 Jan 2005 20:32:16 +0000
Subject: [PATCH] Added CPS patch circumvent code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2326 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Document/Folder.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py
index a1a9ad34bd..156eee81d1 100755
--- a/product/ERP5Type/Document/Folder.py
+++ b/product/ERP5Type/Document/Folder.py
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
 from Acquisition import aq_base, aq_self
 import ExtensionClass
 
+from OFS.CopySupport import CopyContainer as OriginalCopyContainer
 from Products.CMFCore.utils import _getAuthenticatedUser
 
 from Products.ERP5Type.Base import Base
@@ -260,6 +261,9 @@ be a problem)."""
   _setPropValue = Base._setPropValue
   _propertyMap = Base._propertyMap # are there any others XXX ?
 
+  # CPS patch circumvent
+  manage_renameObject = OriginalCopyContainer.manage_renameObject   
+  
   #security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' )
   #manage_delObjects = CopyContainer.manage_delObjects
 
-- 
2.30.9