[Zope3-Users] Re: Re: Blobs in Z3 anyone?

Rocky Burt rocky.burt at adaptivewave.com
Thu Apr 20 06:50:04 EDT 2006


Based on these thoughts... am I correct in assuming that somewhere Zope3
makes file objects implement IStreamIterator?

And if that is indeed the case, would this approach work the same way on
both Zope2.x and Zope3.x ?

- Rocky


On Thu, 2006-20-04 at 03:54 -0400, Chris McDonough wrote:
> On Apr 20, 2006, at 3:54 AM, Philipp von Weitershausen wrote:
> 
> > Chris McDonough wrote:
> >> Actually, "stream iterator" support is independent of blobs.
> >
> > Right. Also, dealing with long-living requests or dribbling data piece
> > by piece is substantially something different than streaming large  
> > data
> > to the user agent without holding application resources forever.  
> > I'm not
> > sure Zope 2 actually differentiates between those two.
> 
> It indeed does.  The former is implemented as RESPONSE.write, the  
> latter is implemented as returning something implementing  
> IStreamIterator to the publisher.
> 
> >
> >> There was some talk a while back about Zope 3 implementing some  
> >> form of
> >> "IResult" interface that allowed for streaming.  I'm not sure  
> >> where that
> >> ended up, though.  I seem to remember Jim checking something in.
> >
> > Yes, there is support for streaming large data without holding
> > application resources. What you do is write the data to a (temp) 
> > file and
> > return the file object. The zope.publisher will know what to do. The
> > "IResult" interface was made private and nowadays just an  
> > implementation
> > detail.
> 
> Right, now I remember.  Thanks.
> 
> - C
-- 
Rocky Burt
AdaptiveWave - Content Management as a Service
http://www.adaptivewave.com
Content Management Made Simple




More information about the Zope3-users mailing list