Re: PdataStreamIterator bug?

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]> Thu, 25 May 2006 11:17:13 -0300
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20060525141713.GF5377@cotia>
On Thu, May 25, 2006 at 04:10:49PM +0200, Roché Compaan wrote:
| I can't see how it can make any difference. What does it matter where
| you stream the file from? At the moment you're streaming it from a
| tempfile, how can streaming it from a chain of Pdata objects break
| ExternalEditor?

You're not getting it. :)

Streaming directly using RESPONSE.write() breaks ExternalEditor.

Returning a stream iterator and letting ZPublisher do the streaming
works with ExternalEditor. This is what I'm doing.

It needs to be read completely before the next() method gets called
at the point next() gets called the ZODB connection might have been
closed already.

-- 
Sidnei da Silva
Enfold Systems                http://enfoldsystems.com
Fax +1 832 201 8856     Office +1 713 942 2377 Ext 214


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642