[Zope-dev] Undeprecation of manage_afterAdd and manage_beforeDelete?

Andreas Jung lists at zopyx.com
Sat Oct 6 13:36:26 EDT 2007



--On 6. Oktober 2007 18:07:51 +0200 Hanno Schlichting <plone at hannosch.info> 
wrote:

> Hi.
>
> Zope 2 currently emits deprecation warnings about old-style event
> methods in OFS, for example manage_afterAdd and manage_beforeDelete.
>
> The deprecation warning states that these methods won't be called
> anymore in Zope 2.11.
>
> I would like to turn this deprecation warning into a discouraged
> warning, i.e. a deprecation warning that just states that the use of
> these methods is discouraged and you should use event subscribers, but
> any mentioning of a Zope version where this feature will be removed goes
> away. You can call it an endless deprecation warning as well.

+1

> While event subscribers are certainly nicer, I don't see any realistic
> chance of refactoring all code in larger projects (like CMF and Plone)
> to move to events entirely in the next months or even years.

Agreed.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20071006/552ee507/attachment.bin


More information about the Zope-Dev mailing list