[Zope-Checkins] CVS: Zope2 - Application.py:1.150

andreas@serenade.digicool.com andreas@serenade.digicool.com
Fri, 1 Jun 2001 15:51:16 -0400


Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/tmp/cvs-serv29290

Modified Files:
	Application.py 
Log Message:
fixed problem when INSTANCE_HOME is set. We tried to import
PluginIndexes as first product in any case. (Collector #2273)



--- Updated File Application.py in package Zope2 --
--- Application.py	2001/05/30 15:57:31	1.149
+++ Application.py	2001/06/01 19:51:16	1.150
@@ -514,8 +514,9 @@
         # We must initialize the PluginIndexes first before
         # all other products (ajung)
 
-        product_names.remove("PluginIndexes")
-        product_names.insert(0,"PluginIndexes")
+        if "PluginIndexes" in product_names:
+            product_names.remove("PluginIndexes")
+            product_names.insert(0,"PluginIndexes")
 
         for product_name in product_names:
 
@@ -586,9 +587,9 @@
         # We must initialize the PluginIndexes first before
         # all other products (ajung)
 
-        product_names.remove("PluginIndexes")
-        product_names.insert(0,"PluginIndexes")
-
+        if "PluginIndexes" in product_names:
+            product_names.remove("PluginIndexes")
+            product_names.insert(0,"PluginIndexes")
 
         for product_name in product_names:
             # For each product, we will import it and try to call the