I should also note that if you create a producer, you will have to
override the __len__ method to return the entire length of the data.

This is because RESPONSE.write doesn't allow you to set the length of a
write and there code during output that checks the size of the written
object.

-Sean

Toby Dickenson([EMAIL PROTECTED])@Wed, Oct 25, 2000 at 12:15:37PM +0100:
> On Tue, 24 Oct 2000 20:31:52 +0200, [EMAIL PROTECTED] wrote:
> 
> >     If the Zope object knows how to produce the data themselves, they
> >     could push producer(s) directly to the channel.  I added a single
> >     check in ZServer.HTTPResponse(256) where a temporary file is only
> >     created if the data is larger than the in-memory buffer *and*
> >     doesn't already look like a producer with 'more' as a method.
> 
> Wahay! thats been on my todo list for ages. Ill take a look when I get
> some time.
> 
> 
> Toby Dickenson
> [EMAIL PROTECTED]
> 
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 
> 

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to