[Zope-CVS] CVS: Packages/WebDAVLogger - __init__.py:1.9
Andreas Jung
andreas@digicool.com
Wed, 17 Apr 2002 09:02:46 -0400
Update of /cvs-repository/Packages/WebDAVLogger
In directory cvs.zope.org:/tmp/cvs-serv3018
Modified Files:
__init__.py
Log Message:
downloading files using GET failed because
the WebDAVLogger wasn't aware how to handle file_part_producer
and file_close_producer instances
=== Packages/WebDAVLogger/__init__.py 1.8 => 1.9 ===
from ZServer.PubCore.ZEvent import Wakeup
import thread,re,os,time
+from types import StringType
from zLOG import LOG,INFO
# Path to logfile
@@ -29,7 +30,11 @@
def _log(text,what=''):
global ts
- if not pat.search(text): return
+
+ if not isinstance(text,StringType):
+ text = '...binary data ....'
+ else:
+ if not pat.search(text): return
lock.acquire()