On Wed, 2005-04-06 at 00:45, Pavel Zaitsev wrote:
> Hello,
> If you look above I had problems with zope creating temp files, as I am 
> using Mac OS X and Webdav to Zope
> mounted on the same machine. There is some race condition on locks in 
> mach kernel, and sometimes zope
> dies, as open system call never returns. 

That sounds bad.  I'm surprised you've had so much trouble with this.  I
thought OS X was just BSD, and BSD works fine?

> I had two choices, one to fix 
> Darwin kernel, and one to
> make TempFile use StringIO, which worked wonderfully. You can override 
> make_file of FieldStorage
>  to return StringIO(), or cStringIO(). Now there are no problems with 
> locked out files, for me.

Well, that's good, but large uploads require a tempfile.

- C

Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to