[Zope-Checkins] CVS: Zope2 - Application.py:1.143.22.1
andreas@digicool.com
andreas@digicool.com
Wed, 16 May 2001 10:43:35 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/OFS
In directory korak.digicool.com:/tmp/cvs-serv3701/lib/python/OFS
Modified Files:
Tag: ajung-dropin-registry
Application.py
Log Message:
added a bad hack to initialize the PluginIndexes product *before*
any other product. Lame but it works.
--- Updated File Application.py in package Zope2 --
--- Application.py 2001/04/07 16:37:07 1.143
+++ Application.py 2001/05/16 14:43:35 1.143.22.1
@@ -512,7 +512,15 @@
product_names=os.listdir(product_dir)
product_names.sort()
+ # Hack !!!
+ # We must initialize the PluginIndexes first before
+ # all other products (ajung)
+
+ product_names.remove("PluginIndexes")
+ product_names.insert(0,"PluginIndexes")
+
for product_name in product_names:
+ print product_name
if done.has_key(product_name): continue
done[product_name]=1
@@ -571,7 +579,16 @@
product_names=os.listdir(product_dir)
product_names.sort()
+ # Hack !!!
+ # We must initialize the PluginIndexes first before
+ # all other products (ajung)
+
+ product_names.remove("PluginIndexes")
+ product_names.insert(0,"PluginIndexes")
+
+
for product_name in product_names:
+ print "installing",product_name
# For each product, we will import it and try to call the
# intialize() method in the product __init__ module. If
# the method doesnt exist, we put the old-style information
@@ -677,6 +694,7 @@
LOG('Zope',ERROR,'Couldn\'t install %s' % product_name,
error=sys.exc_info())
get_transaction().abort()
+ print "done"
Products.meta_types=Products.meta_types+tuple(meta_types)