[Zope3-dev] Re: RFC: Use ConfigParser for High-Level Configuration
Dieter Maurer
dieter at handshake.de
Mon Mar 6 13:42:01 EST 2006
Philipp von Weitershausen wrote at 2006-3-5 18:17 +0100:
> ...
>Looking at your examples (especially the long one), I find the ZConfig
>version much easier to read.
While ZConfig allows you the describe related material together
and without indirections, the ConfigParser format forces you
to introduce indirections and to spread related definitions
over a longer area.
An example: the logger configuration.
In ZConfig:
<eventlog>
<handler1>...</handler1>
...
<handlern>...</handlern>
</enventlog>
In ConfigParser:
[eventlog]
handlers = handler1 ... handlern
[handler1]
...
[handlern]
As locality facilitates readability and understanding,
ZConfig files tend to be easier to read and understand
than ConfigParser ones.
--
Dieter
More information about the Zope3-dev
mailing list