[Zope-CMF] Re: [dev] CMFSetup: proposal for improving handlers
y.2004_ at wcm-solutions.de
Fri Dec 17 16:16:28 EST 2004
Dieter Maurer wrote:
> yuppie wrote at 2004-12-17 11:07 +0100:
>>The values behind the constants are meaningless:
>> CONVERTER, DEFAULT, KEY = range(3)
> Funny. I use this style only at places where I am concerned about
> maximal efficiency. At other places, I prefer string literals.
> The problem stems from the fact that some concept has been introduced
> by an example (with unexplained magic keys "KEY", "DEFAULT", ...).
That's not true. I explained each key.
> I would have had less difficulties when the concept were introduced
> by a description. Something along the lines:
> values are dictionaries with the optional keys
> "KEY", "DEFAULT", "CONVERTER".
> The associated values have the following meaning (I am not
> yet sure what "KEY" or "CONVERTER" mean) ...
> These keys are constants defined in ...
Others prefer examples. Feel free to ask questions if the explanations
are not sufficient.
More information about the Zope-CMF