Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Itamar Turner-Trauring
On Mon, 2010-06-14 at 21:59 +0300, Yaroslav Fedevych wrote: > On Mon, Jun 14, 2010 at 6:56 PM, Itamar Turner-Trauring > wrote: > >>> Very large requests get written to disk, rather than memory. This is > >>> still not ideal, streaming is obviously better - someone may be able to > >>> suggest how

Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Yaroslav Fedevych
On Mon, Jun 14, 2010 at 6:56 PM, Itamar Turner-Trauring wrote: >>> Very large requests get written to disk, rather than memory. This is >>> still not ideal, streaming is obviously better - someone may be able to >>> suggest how to do it until Twisted gets fixed. >>> >> >> That is unfortunate.  Do

Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Itamar Turner-Trauring
>> Very large requests get written to disk, rather than memory. This is >> still not ideal, streaming is obviously better - someone may be able to >> suggest how to do it until Twisted gets fixed. >> > > That is unfortunate. Do you know of an example that shows to get access > to > that file or do

Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Allen Bierbaum
On Mon, Jun 14, 2010 at 8:38 AM, Itamar Turner-Trauring wrote: > On Mon, 2010-06-14 at 08:22 -0500, Allen Bierbaum wrote: > > > 1) Is there any method to stream a large request (ex: PUT or POST with > > file upload) into the system or does the entire body have to be loaded > > into memory as part

Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Itamar Turner-Trauring
On Mon, 2010-06-14 at 09:38 -0400, Itamar Turner-Trauring wrote: > > 4) Are their any wrappers people have developed to make it a bit > > easier to use deferreds (in particular inlinecallbacks) in the > > handlers for twisted.web? (I am considering just writing a wrapper > > myself that provides

Re: [Twisted-Python] twisted.web questions

2010-06-14 Thread Itamar Turner-Trauring
On Mon, 2010-06-14 at 08:22 -0500, Allen Bierbaum wrote: > 1) Is there any method to stream a large request (ex: PUT or POST with > file upload) into the system or does the entire body have to be loaded > into memory as part of the request? Very large requests get written to disk, rather than mem

[Twisted-Python] twisted.web questions

2010-06-14 Thread Allen Bierbaum
We have a large client-server based application based on twisted. The application has grown to the point where we would like to add a REST-based API to the server side to allow for interfacing with a wider variety of client applications. Over the weekend I started looking into twisted.web and had