RE: [Zope-dev] Large file support

2000-10-25 Thread Toby Dickenson
> 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 > obje

Re: [Zope-dev] Large file support

2000-10-25 Thread seant
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 To

Re: [Zope-dev] Large file support

2000-10-25 Thread seant
There is not much difference between the ExternalFile class I'm working with and the File objects produced by LocalFS except External Files can be put anywhere in the Zope hierarchy and LocalFS files need to be under a LocalFS. Each approach has its pros and cons. This proposal mostly deals with

Re: [Zope-dev] Large file support

2000-10-25 Thread Toby Dickenson
On Wed, 25 Oct 2000 12:35:23 +0100, Chris Withers <[EMAIL PROTECTED]> wrote: >How does this differ from Local FS? I dont recall exactly how LocalFS worked, but without this patch it basically had three options for handling its output: 1. copy the whole file into memory before sending the first

Re: [Zope-dev] Large file support

2000-10-25 Thread Chris Withers
How does this differ from Local FS? cheers, Chris [EMAIL PROTECTED] wrote: > > I have been building an "ExternalFile" class which stores the body of > the file in an external file, mirroring the Zope path/hierarchy. This > will allow easy integration with servers that can mount the external >

Re: [Zope-dev] Large file support

2000-10-25 Thread Toby Dickenson
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 > create