-----BEGIN PGP SIGNED MESSAGE-----
On 22 Jan 2007, at 21:57, Doyon, Jean-Francois wrote:
I'm trying to use IObjectAdded for an object that looks like this:
class MapServerMap(PortalFolder, PortalContent, CLFMetadataImpl):
""" Map Server Map Class """
Without success ... The event doesn't seem to fire at all.
If you want to react to an event you need to do two things:
- - mark your content item with an interface (you already did this)
- - code up a handler for the event
- - register your handler for the event
Only implementing some interface is not enough. You could have a
function like this somewhere:
def handleEvent(ob, event):
""" Event subscriber for (IMapServerMap, IObjectAdded) events.
if event.newParent is not None:
and a registration like this:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests