[Zope-dev] app = Zope.app() backwards incompatibility notice / discussion

Dieter Maurer dieter at handshake.de
Mon Dec 22 13:37:52 EST 2003


Chris McDonough wrote at 2003-12-21 18:16 -0500:
> ...
>Will need to do this under 2.7b4+:
>
> import Zope
> Zope.configure('/path/to/configfile')
> app = Zope.app()
> ...
>Jim Roepke suggested that if an "ZOPE_CONFIG" envvar was set with the
>config file path, that "import Zope; Zope.app()" could be made to "just
>work",

A very good suggestion!

>but I'm not sure this is any better than requiring that
>developers change their scripts.

For developpers, it is much better:

  Add an environment variable at one (or a few) central
  place versus change lots of scripts.

> Guessing at the config file location
>is also fraught with problems, and I'd be hesitant to do it.

The suggestion was to use the value of "ZOPE_CONFIG" as
config file path. Thus, you do not need to guess...

-- 
Dieter



More information about the Zope-Dev mailing list