[Zope3-checkins] CVS: Zope3 - z3.py:1.7

Jeremy Hylton jeremy@zope.com
Mon, 25 Nov 2002 12:07:33 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv19815

Modified Files:
	z3.py 
Log Message:
Explicitly use ThreadedAsync.

We need ThreadedAsync to make ZEO work with Zope.  It seems better to
be explicit about where the code is running, so import ThreadedAsync
instead of pretending to go through asyncore.


=== Zope3/z3.py 1.6 => 1.7 ===
--- Zope3/z3.py:1.6	Mon Nov 18 15:20:11 2002
+++ Zope3/z3.py	Mon Nov 25 12:07:32 2002
@@ -17,7 +17,8 @@
 $Id$
 """
 
-import os, sys, asyncore
+import os, sys
+import ThreadedAsync
 
 basepath = filter(None, sys.path)
 
@@ -57,7 +58,7 @@
     XMLConfig(os.path.join(dir, 'zserver.zcml'))()
 
     try:
-        asyncore.loop()
+        ThreadedAsync.loop()
     except KeyboardInterrupt:
         # Exit without spewing an exception.
         pass