Commit 06bc8449 authored by Nicolas Dumazet's avatar Nicolas Dumazet

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
parent 62e32406
......@@ -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)
......
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