[Zope-CMF] Re: [CMF 2.1] FSPageTemplate & Unicode

Jens Vagelpohl jens at dataflake.org
Sun Jan 7 17:54:43 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFoXozRAx5nvEhZLIRAvh5AKCPqGu6L7JJ4SPFU2c0gRf8TupvyACdFUNv
6vBg8i9OgPYnPX3Fs5Rb2V4=
=bC2h
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list