[Zope-Coders] Re: New API for Zope configuration info

R. David Murray rdmurray+dated+1045406183.3022f0@bitdance.com
Tue, 11 Feb 2003 09:36:19 -0500


Fred wrote:
>A new module, App.config, will be introduced.  It will contain the
>function getConfiguration(), which will return an object with useful
>attributes:
>
>  clienthome -- the same as CLIENT_HOME
>  instancehome -- the same as INSTANCE_HOME
>  softwarehome -- the same as SOFTWARE_HOME
>  zopehome -- the same as ZOPE_HOME

+1 for the concept/general approach.

Question:  why a function?  Why can't I just import the config
object that has the attributes from the module, and save myself a line
of code in every module I need it in? 

--RDM