-----BEGIN PGP SIGNED MESSAGE-----
On 7 Jan 2007, at 23:45, Martin Aspeli wrote:
A warning is of course one thing. If getToolByName() is gone
entirely in a year (I don't know if that was your intention or not)
it's pretty scary. Surely, some things deserve longer deprecation
periods than others, and getToolByName() is used in pretty much
every third party product (certainly every one I've written).
If that is your main concern then let me put it to rest right now.
getToolByName is very central, we all know that. It won't just be
ripped out without some kind of consultation. I just want to scare
people enough so they switch their code sooner rather than later.
Let's talk about something fun instead, like that wrapping issue. I
personally can't see any problem with Hanno's suggestion for a
"special" component registry and automatically wrapping those tools
that are in the little registry. I'm just concerned that this
registry is being abused a little - it really was only meant for
getToolByName to construct a more meaningful deprecation message
where the interface name is displayed, looked up from the tool ID. It
seems Hanno's suggestion forces it to be kept around even after
getToolByName has gone away in the distant future.
-----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