[Zope3-dev] Re: Update: The browser:page compromise

Tres Seaver tseaver at palladion.com
Mon Apr 24 11:51:07 EDT 2006


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

Philipp von Weitershausen wrote:
> Florent Guillaume wrote:
> 
>> Philipp von Weitershausen wrote:
>>
>>> If people don't like the 'browser2' prefix, I'm open to other
>>> suggestions. For all I care, the three directives I suggested could
>>> be on the 'browser' namespace, only browser2:page and browser:page
>>> clash. So perhaps browser2:page should be named something else. I
>>> can't seem to come up with good alternatives, though.
>>
>>
>> I haven't looked closely, but can't we have one <browser:page> whose
>> behaviour changes according to what attributes it has? If old
>> attributes are provided, a deprecation message is sent but the old
>> code is used. Otherwise the new behaviour is in effect.
> 
> 
> Heh, of course. In fact, that was my original idea, but Tres & Co.
> objected to it (changing browser:page in-place instead of creating a new
> directive).

There is no particular reason to have the new directives in the same
namespace as the old ones, but note that the "convenience prefix"
('browser' vs. 'browser2') is strictly up to the author of the ZCML
file, and not up to the directive author.

Changing the namespace declration at the top of that file would be a
sign that one had adopted the new semantics, which seems like a good
gesture to me.

If we don't adopt a new namespace, perhaps 'browser:published'would
serve as a 'nominalized adjective" noun form of 'browser:publish'.

In any case, I would argue for having the new directives deployed as
alternatives for at least a release *before* we talk about deprecating
the old ones.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFETPPr+gerLs4ltQ4RAlVrAJ9oc7be5KfBUJE18IkHd02kwDM3rQCgssxu
IMcJnwDkvchb7Wj13Fft84M=
=CX7u
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list