[Zope-CMF] Re: [dev] CMFSetup: proposal for improving handlers
Dieter Maurer
dieter at handshake.de
Wed Dec 15 16:17:08 EST 2004
yuppie wrote at 2004-12-13 09:50 +0100:
> ...
>> Are these keys more "constant" than usual dictionary keys?
>> Are all your dictionary keys spelled in all capital letters?
>>
>
>Seems the context got lost.
Right.
>I started my prototype with explicit dictionary keys like here:
>
> { 'permission': {'key': 'permissions', 'default': ()} }
>
>But I replaced them later with constants imported from one place to
>catch typos easily.
For an example, it is better to use the string constants literally
rather than hiding them behind constants.
--
Dieter
More information about the Zope-CMF
mailing list