[Zope-Checkins] CVS: Zope/lib/python/Zope/App - startup.py:1.15

Stefan H. Holek stefan at epy.co.at
Mon Mar 22 11:25:03 EST 2004


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

Modified Files:
	startup.py 
Log Message:
Collector #1260: Testing/__init__.py no longer changes the INSTANCE_HOME.


=== Zope/lib/python/Zope/App/startup.py 1.14 => 1.15 ===
--- Zope/lib/python/Zope/App/startup.py:1.14	Thu Mar  4 17:45:12 2004
+++ Zope/lib/python/Zope/App/startup.py	Mon Mar 22 11:25:02 2004
@@ -47,7 +47,10 @@
     # Open the database
     try:
         # Try to use custom storage
-        m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
+        try:
+            m=imp.find_module('custom_zodb',[getConfiguration().testinghome])
+        except:
+            m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
     except:
         # if there is no custom_zodb, use the config file specified databases
         configuration = getConfiguration()




More information about the Zope-Checkins mailing list