[Zodb-checkins] CVS: ZODB3/ZEO/tests - zeoserver.py:1.4.6.1

Fred L. Drake, Jr. fred@zope.com
Fri, 3 Jan 2003 09:59:48 -0500


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv28414/ZEO/tests

Modified Files:
      Tag: zconfig-schema-devel-branch
	zeoserver.py 
Log Message:
Use the ZConfig.Context module to get to the old-style ZConfig behavior.

=== ZODB3/ZEO/tests/zeoserver.py 1.4 => 1.4.6.1 ===
--- ZODB3/ZEO/tests/zeoserver.py:1.4	Mon Dec 16 18:36:13 2002
+++ ZODB3/ZEO/tests/zeoserver.py	Fri Jan  3 09:59:16 2003
@@ -22,14 +22,15 @@
 import asyncore
 import ThreadedAsync.LoopCallback
 
-import ZConfig
+import ZConfig.Context
 import zLOG
 from ZODB import StorageConfig
 import ZEO.StorageServer
 
 
 def load_storage(fp):
-    rootconf = ZConfig.loadfile(fp)
+    context = ZConfig.Context.Context()
+    rootconf = context.loadFile(fp)
     storageconf = rootconf.getSection('Storage')
     return StorageConfig.createStorage(storageconf)