[Zope3-checkins] CVS: Zope3/src/zodb/zeo/tests - zeoserver.py:1.3

Fred L. Drake, Jr. fred@zope.com
Fri, 3 Jan 2003 16:53:38 -0500


Update of /cvs-repository/Zope3/src/zodb/zeo/tests
In directory cvs.zope.org:/tmp/cvs-serv18233

Modified Files:
	zeoserver.py 
Log Message:
Use ZConfig compatibility code for now.


=== Zope3/src/zodb/zeo/tests/zeoserver.py 1.2 => 1.3 ===
--- Zope3/src/zodb/zeo/tests/zeoserver.py:1.2	Wed Dec 25 09:12:22 2002
+++ Zope3/src/zodb/zeo/tests/zeoserver.py	Fri Jan  3 16:53:35 2003
@@ -22,14 +22,15 @@
 import logging
 import asyncore
 
-import ZConfig
+import ZConfig.Context
 from zodb import config
 import zodb.zeo.server
 from zodb.zeo import threadedasync
 
 
 def load_storage(fp):
-    rootconf = ZConfig.loadfile(fp)
+    context = ZConfig.Context.Context()
+    rootconf = context.loadFile(fp)
     storageconf = rootconf.getSection('Storage')
     return config.createStorage(storageconf)