[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - handlers.py:1.11 zopeschema.xml:1.20

Chris McDonough chrism at zope.com
Thu Oct 2 15:09:58 EDT 2003


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv28032/lib/python/Zope/Startup

Modified Files:
	handlers.py zopeschema.xml 
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/Zope/Startup/handlers.py 1.10 => 1.11 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.10	Sun Aug 17 17:08:02 2003
+++ Zope/lib/python/Zope/Startup/handlers.py	Thu Oct  2 15:09:27 2003
@@ -22,10 +22,6 @@
     Globals.DevelopmentMode = not not value
     return value
 
-def enable_product_installation(value):
-    value and _setenv('FORCE_PRODUCT_LOAD', '1')
-    return value
-
 def locale(value):
     import locale
     locale.setlocale(locale.LC_ALL, value)


=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.19 => 1.20 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.19	Tue Sep 23 11:27:43 2003
+++ Zope/lib/python/Zope/Startup/zopeschema.xml	Thu Oct  2 15:09:27 2003
@@ -302,16 +302,13 @@
     <metadefault>unset</metadefault>
   </key>
 
-  <key name="enable-product-installation" datatype="boolean" default="on"
-       handler="enable_product_installation">
+  <key name="enable-product-installation" datatype="boolean" default="on">
     <description>
      If this directive is turned on, Zope performs 'product installation'
      (the registration of Python modules in various Products directories)
      at startup. Turning this off can speed Zope startup time, but it can
      also cause your Control_Panel Product list to become desynchronized
-     with the contents of your Products directories. If the
-     'zeo_client_name' directive is set, and this directive is unset, this
-     directive will be implicitly turned off.
+     with the contents of your Products directories.
     </description>
     <metadefault>on</metadefault>
   </key>




More information about the Zope-Checkins mailing list