[Zope-CVS] CVS: Packages/SpreadLog - server.py:1.3
Jeremy Hylton
jeremy@zope.com
Mon, 8 Oct 2001 22:41:49 -0400
Update of /cvs-repository/Packages/SpreadLog
In directory cvs.zope.org:/tmp/cvs-serv9289
Modified Files:
server.py
Log Message:
Do a whole bunch of messages at once
=== Packages/SpreadLog/server.py 1.2 => 1.3 ===
pass
if r:
- try:
- msg = mbox.receive()
- except spread.error, err:
- pass
- else:
- print >> log_file, msg.message
+ while mbox.poll():
+ try:
+ msg = mbox.receive()
+ except spread.error, err:
+ pass
+ else:
+ print >> log_file, msg.message
else:
break
if test_exit is not None: