Commit 94758d62 authored by Sebastien Robin's avatar Sebastien Robin

make sure we raise error when the catalog is not avaible while deleting objects

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbfc71a0
...@@ -888,6 +888,15 @@ be a problem).""" ...@@ -888,6 +888,15 @@ be a problem)."""
for o in self.objectValues(): for o in self.objectValues():
if hasattr(aq_base(o), 'makeTemplateInstance'): o.makeTemplateInstance() if hasattr(aq_base(o), 'makeTemplateInstance'): o.makeTemplateInstance()
def _delObject(self, id, dp=1):
"""
_delObject is redefined here in order to make sure
we do not do silent except while we remove objects
from catalog
"""
object = self._getOb(id)
object.manage_beforeDelete(object, self)
self._delOb(id)
# Overwrite Zope setTitle() # Overwrite Zope setTitle()
Folder.setTitle = Base.setTitle Folder.setTitle = Base.setTitle
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