[Zope-Checkins] CVS: Zope/lib/python/App - Product.py:1.65
Chris McDonough
chrism at zope.com
Thu Oct 2 15:09:58 EDT 2003
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv28032/lib/python/App
Modified Files:
Product.py
Log Message:
Disassociate zeo-client-name from enable-product-installation ZConfig keys.
In the past, if you ran an appserver as ZEO client with a persistent
cache, the startup logic prevented products from being loaded. This
was a hack that got baked in via the weird interaction between the
FORCE_PRODUCT_LOAD and ZEO_CLIENT environment variables and was carried
over into Zope 2.7 by inertia. Now they have nothing to do with each other
and can be specified independently.
=== Zope/lib/python/App/Product.py 1.64 => 1.65 ===
--- Zope/lib/python/App/Product.py:1.64 Wed Jul 9 14:45:05 2003
+++ Zope/lib/python/App/Product.py Thu Oct 2 15:09:27 2003
@@ -591,7 +591,5 @@
def doInstall():
- if os.environ.has_key('FORCE_PRODUCT_LOAD'):
- return not not os.environ['FORCE_PRODUCT_LOAD']
+ return getConfiguration().enable_product_installation
- return not os.environ.get('ZEO_CLIENT')
More information about the Zope-Checkins
mailing list