[ZCM] [ZC] 299/ 2 Accept "misuse of ZEO_CLIENT env var"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Mon, 18 Mar 2002 10:11:16 -0500


Issue #299 Update (Accept) "misuse of ZEO_CLIENT env var"
 Status Accepted, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/299

==============================================================
= Accept - Entry #2 by mcdonc on Mar 18, 2002 10:11 am

 Status: Pending => Accepted

 Supporters added: mcdonc

I am going to "fix" this.  I am going to add a bit to initialization that checks for a LOAD_PRODUCTS environment variable.  If it is set to a blank string or '0', product loading will not occur regardless of the ZEO_CLIENT envvar.  If it is set to false or unset and the ZEO_CLIENT envvar is set, product loading will not occur (this is the current behavior).
________________________________________
= Request - Entry #1 by htrd on Mar 18, 2002 9:24 am

The ZEO_CLIENT environment variable is used for two different things:

1. In ZEO.ClientStorage, it is used to determine whether it should use a temporary or persistent client cache. If persistent, the value of this variable determines the name of the cache. This is the documented and correct (IMHO) use of this variable.

2. In Zope, it is used to inhibit various things that shouldnt be done on every ZEO client, such as product initialization.

This means it is not possible to use Zope with a temporary Client Cache.




==============================================================