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

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


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

Modified Files:
      Tag: Zope-2_7-branch
	startup.py 
Log Message:
Collector #1260: Testing/__init__.py no longer changes the INSTANCE_HOME.


=== Zope/lib/python/Zope/App/startup.py 1.8.2.3 => 1.8.2.4 ===
--- Zope/lib/python/Zope/App/startup.py:1.8.2.3	Fri Dec 19 23:48:36 2003
+++ Zope/lib/python/Zope/App/startup.py	Mon Mar 22 11:25:47 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