[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_Var.py:1.51

Matt Behrens matt@zigg.com
Tue, 19 Mar 2002 07:47:59 -0500


> Is adding an environment variable for every global parametrization of
> Zope the right way to do such things ? We could get pretty quickly
> drowned under variables...
> 
> At the very least prefix it by ZOPE_ or something.

We are already drowning in variables, and to a lesser degree, command
line switches. :-)

I'm not so sure I see the need to establish any kind of even ad-hoc
namespace, though.  Just because you set an environment variable doesn't
mean you have to set it globally.  It can easily be thrown into the
start script, where it won't affect anything but Zope and processes that
might be spawned from Zope.

> But in my humble opinion this is creeping featurism. If someone really
> wants to have a non-default level for stx in HTML, let him write an
> external method to do it.

IMO, an EM is worse.  FWIW, the very concept of setting the default
level globally at all gives me hives.