[ZODB-Dev] ZODB Blob Question

Christian Theune ct at gocept.com
Thu Jun 4 01:20:57 EDT 2009


Hi,

Just found this in my inbox.

On Wed, 2008-10-15 at 12:18 +0200, Andreas Zeidler wrote:
> On Oct 14, 2008, at 5:43 PM, Christian Theune wrote:
> > On Tue, 2008-10-14 at 10:09 -0500, Alan Runyan wrote:
> >> Why must the file be closed before calling consumeFile?
> >>
> >> And would you go as far as saying that if you *do not close* the file
> >> before calling consumeFile - all bets are off.  You are not using  
> >> Blob
> >> as intended?
> >
> > You're definitely not going to be able to work on Windows, which is  
> > the
> > source of the requirements to close handles before moving/deleting
> > files.
> 
> alan and i hit that point when trying to avoid copying the uploaded  
> data before handing it to `consumeFile` and were wondering if the  
> requirement was only necessary because of that or if perhaps other  
> unexpected things would creep up later.  so, would you say it's  
> generally okay to leave the file open (until the end of the request)  
> on a posix system?

Yeah, posix systems generally allow you to operate on the file(name)
while open file handles are still referencing it. 

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20090604/01b74219/attachment.bin 


More information about the ZODB-Dev mailing list