[Zope] Site-wide (global) variables ...

Mauricio Souza Lima mauricio@hiper.com.br
Fri, 28 Jan 2000 17:44:47 -0200


Another approach is to create a folder in the root named "global", and then call
methods, properties with "<dtml-var "global.prop"> or <dtml-var
"global['prop']">. If you need organization, i think that it is what you need...



Jonothan Farr wrote:

> > I'm looking for advice on implementing site-wide (global)
> > variables in Zope.  That is, I want certain variables
> > to be accessible to every folder, ZClass, method and
> > document in the ZODB.  Should I simply add these
> > properties to the root folder and then make use of
> > aquisition or is there a more elegant approach (say
> > a globals singleton object that lives in the root)?
>
> I believe that acquired properties of the root folder -is- the elegant
> solution.
>
> -jfarr
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Hi! I'm a signature virus.
> Copy me into your .sig to join the fun!
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

--
----------------------
Mauricio - Hiperlógica
Automação de Web Sites
mauricio@hiper.com.br
   www.hiper.com.br
----------------------