27 Jan
2000
27 Jan
'00
1:46 a.m.
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! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~