Charlie Clark wrote:
> I noticed in an object derived from CMFCatalogAware that it wasn't
> being removed from the catalogue upon deletion. Looking at the event
> handlers in CMFCatalogAware it's clear that nothing handles
> IObjectWillBeRemovedEvent.
I don't think so. OFS.interfaces.IObjectWillBeRemovedEvent is derived
from OFS.interfaces.IObjectWillBeMovedEvent. So these lines in
handleContentishEvent() should unindex the object:
elif IObjectWillBeMovedEvent.providedBy(event):
if event.oldParent is not None:
ob.unindexObject()
Cheers, Yuppie
_______________________________________________
Zope-CMF maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cmf
See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests