[Zodb-checkins] CVS: ZODB3/ZEO/tests - zeoserver.py:1.5
Fred L. Drake, Jr.
fred@zope.com
Fri, 3 Jan 2003 16:19:38 -0500
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv13656/ZEO/tests
Modified Files:
zeoserver.py
Log Message:
Merge ZConfig schema support integration from the zconfig-schema-devel-branch.
=== ZODB3/ZEO/tests/zeoserver.py 1.4 => 1.5 ===
--- ZODB3/ZEO/tests/zeoserver.py:1.4 Mon Dec 16 18:36:13 2002
+++ ZODB3/ZEO/tests/zeoserver.py Fri Jan 3 16:19:05 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)