Hello,

I'm trying to use IObjectAdded for an object that looks like this:

class MapServerMap(PortalFolder, PortalContent, CLFMetadataImpl):
    """ Map Server Map Class """

    implements(IMapServerMap)

Without success ... The event doesn't seem to fire at all.

I've used the event on a tool successfully however.

This doesn't seem to work even if I use five:deprecatedManageAddDelete ...

This page seems to suggest it should though:

http://codespeak.net/z3/five/event.html

"This tells Zope that you acknowledge that your class contains deprecated 
methods, and ask it to still call them in the proper manner. So Zope will be 
sending events when an object is added, for instance, and in addition call your 
old manage_afterAdd method."

My configure.zcml contains:

        <subscriber
                for=".interfaces.IMapServerMap
                   zope.app.container.interfaces.IObjectAddedEvent"
                handler=".MapServerMap.added" />

Thoughts?

Thanks,

Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de 
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to