From 06bc8449bec376386b600382ff36117df4d6d8e4 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Mon, 31 Jan 2011 05:53:56 +0000
Subject: [PATCH] silence a Zope 2.12 warning: ObjectManager._delObject now
 uses a suppress_events parameter.

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

diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py
index ac82290787..466cf1cace 100644
--- a/product/ERP5Type/Core/Folder.py
+++ b/product/ERP5Type/Core/Folder.py
@@ -1523,11 +1523,13 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
       if getattr(aq_base(o), 'makeTemplateInstance', None) is not None:
         o.makeTemplateInstance()
 
-  def _delObject(self, id, dp=1):
+  def _delObject(self, id, dp=1, suppress_events=True):
     """
       _delObject is redefined here in order to make sure
       we do not do silent except while we remove objects
       from catalog
+
+      Note that we always suppress / do not use events.
     """
     object = self._getOb(id)
     object.manage_beforeDelete(object, self)
-- 
2.30.9