Commit 85f4fc22 authored by Jim Fulton's avatar Jim Fulton

Updated _delObject to use new delete hook.

parent 5cb34273
......@@ -188,13 +188,12 @@ class ZClassMethodsSheet(
def _delObject(self, id, dp=1):
# Ick! This is necessary to deal with spaces. Waaa!
object=self._getOb(id)
object.manage_beforeDelete(object, self)
id=strip(id)
if id=='acl_users':
if hasattr(self, '__allow_groups__') and \
self.__dict__.has_key('__allow_groups__'):
delattr(self, '__allow_groups__')
self._objects=tuple(filter(lambda i,n=id: strip(i['id']) != n, self._objects))
self._objects=tuple(filter(lambda i,n=id:
strip(i['id']) != n,
self._objects))
self._delOb(id)
def _getOb(self, id, default=_marker):
......
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