[Zope-CMF] Missing Event Handler for CMFCatalogAware
yuppie
y.2008 at wcm-solutions.de
Wed Oct 29 11:53:47 EDT 2008
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
More information about the Zope-CMF
mailing list