[Zope-dev] Re: Question about manage_afterAdd in 2.9.1

Philipp von Weitershausen philipp at weitershausen.de
Mon Mar 20 11:13:49 EST 2006


Chris Withers wrote:
> I've started seeing warnings like this with an instance I'm moving from
> Zope 2.7 to 2.9:
> 
> C:\Zope\2.9.1\lib\python\OFS\subscribers.py:74: DeprecationWarning:
> Products.CookieCrumbler.CookieCrumbler.CookieCrumbler.manage_afterAdd is
> deprecated and will be removed in Zope 2.11, you should use event
> subscribers instead, and meanwhile mark the class with
> <five:deprecatedManageAddDelete/>
>   DeprecationWarning)
> 
> Is there an example of exactly what I need to add and where?

The deprecation message tells you what to do :).

Anyways, see
http://blogs.nuxeo.com/sections/blogs/florent_guillaume/2005_11_08_events-in-zope-2-9
for more info.

Philipp


More information about the Zope-Dev mailing list