Chris Withers wrote:
Hey All,

How do I subscribe a susbcriber to ObjectModifiedEvent but not ContainerModifiedEvent?

I have a subscriber that is currently subscribed to IObjectModifiedEvent, but as a result it's getting called when objects are added and removed whereas I only want it when the container is actually getting modified.

def handler(event):
    if IContainerModifiedEvent.providedBy(event):
        return

Martin

--
Acquisition is a jealous mistress

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to