I did not understand why people was replying the same answer as I did. That's simple: I did not reply to the mailing list ;) ---------- Forwarded message ---------- From: Patrick DECAT <pdecat@gmail.com> Date: Thu, 31 Mar 2005 11:50:56 +0200 Subject: Re: [Zope-dev] zope /tmp file usage To: Pavel Zaitsev <pavel@md5.ca> Hi Pavel, when files are uploaded with WebDAV, they are part of an HTTP PUT request. If the file is larger than LARGE_FILE_THRESHOLD, a temporary file is created by the zhttp_collector in HTTPServer.py class zhttp_collector: def __init__(self, handler, request, size): from ZServer import LARGE_FILE_THRESHOLD self.handler = handler self.request = request if size > LARGE_FILE_THRESHOLD: # write large upload data to a file from tempfile import TemporaryFile self.data = TemporaryFile('w+b') else: self.data = StringIO() request.channel.set_terminator(size) request.collector=self Regards, Patrick. On Thu, 31 Mar 2005 01:52:11 -0500, Pavel Zaitsev <pavel@md5.ca> wrote:
Hi, I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files. I am using zope over webdav and sometimes webdav tries to create a tmp file, of some sort and some parts of the system lock up. There are xml parsers,mime decoders all of which do have binary code bits, so I asking for expert advice, if someone knows of what circuimstances zope would use /tmp directory to create a file... your help will be greatly appreciated. Pavel
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )