[Zope3-dev] How does Zope.Configuration work?

Myroslav Opyr myroslav@zope.net.ua
Thu, 28 Mar 2002 10:25:00 +0200


R. David Murray wrote:

>On Wed, 27 Mar 2002, Lennart Regebro wrote:
>
>>Well, I'd say that Apaches configuration is dangerously close to progra=
mming
>>to. :-)
>>It's darn hard to configure Apache, and to use that as a benchmark is n=
ot a
>>good idea.
>>
>Well, I refuse to use Microsoft's GUIs (such as regedit) as a benchmark.
>I think the "don't touch that configuration file" style of configuration
>is rare outside of Microsoft and end-user X apps.  And personally,
>I *much* prefer that situation to an all-GUI world, even wearing
>just my admin hat and not my programmer's hat.  But I'm willing to let
>others build and use the GUIs, as long as I can see and hack the *real*
>configuration in the configuration files <grin>.
>
Well, Micro$oft' mistake was limiting to GUI in administrative tasks=20
(far not everything can be done with CL)... But we can gather best=20
people from both world offering plain-text (xml) zcml and GUI (probably=20
web-based first). Something like comfort matters too. Meaning that=20
default behavior can be configured too. I'll try to explain in couple of=20
words.

Let's say I have dozen of Zope instances running. All they share one=20
ZopeProducts directory. Lennart Regebro suggested them to pick Products=20
which were dropped into that folder by default. Magnus Heino and Tim=20
Hoffman wanted to pick them even without restart. All ideas are just=20
perfect but far not all cases. I'd like to have per-instance behavior.

For example I have one production site runnung and I am concerned with=20
stablility and security issues. I wouldn't want it to just catch and run=20
everything from ZopeProducts... It's default behavior wouldb: "notice=20
dropped products but wait for site admin to activate them"

Another is my test-pad or development instance. Security and reliability=20
does not matter there. They could pick up products and load them=20
immediately. The same with Product' zcml files.

Thus default behavior should be configurable and only default values for=20
defaults ;) would be preset (even them could differ in zope-3.0 and=20
zope-3.0-devel ;)

Myroslav
--=20
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> =B0 Ukrainian Zope Hosting
e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>
cell: +380 50.3174578