[Zope-dev] Undeprecation of manage_afterAdd and manage_beforeDelete?

Hanno Schlichting plone at hannosch.info
Sat Oct 6 12:07:51 EDT 2007


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.

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.

Thoughts?

Hanno



More information about the Zope-Dev mailing list