[Zodb-checkins] CVS: StandaloneZODB/ZEO - StorageServer.py:1.28.2.6

Jeremy Hylton jeremy@zope.com
Wed, 31 Oct 2001 14:53:22 -0500


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv2911/ZEO

Modified Files:
      Tag: zeo-1_0-branch
	StorageServer.py 
Log Message:
Fix __main__ so it actually works.

Reformat a for statement so the body of the loop is on a separate
line.

XXX Neither of these changes requires a new beta release.


=== StandaloneZODB/ZEO/StorageServer.py 1.28.2.5 => 1.28.2.6 ===
         
         self.__storages=storages
-        for n, s in storages.items(): init_storage(s)
+        for n, s in storages.items():
+            init_storage(s)
 
         self.__connections={}
         self.__get_connections=self.__connections.get
@@ -601,6 +602,7 @@
         port='', int(port)
     except:
         pass
-    
-    StorageServer(port, ZODB.FileStorage.FileStorage(name))
+
+    d = {'1': ZODB.FileStorage.FileStorage(name)}
+    StorageServer(port, d)
     asyncwrap.loop()