Excellent. Yes, it helps greatly. 

What I'm in need of is the ability to allow PUTs of arbitrarily large 
entity-bodies which I will write to a file system on the server. The problem 
with twisted.web right now is that before my Resource.render_ hander is called 
to process the request, the http.Request object has already received all of the 
bytes and either put them in a StringIO or a TemporaryFile. I'd like to be able 
to get at the incoming data stream and handle it directly, and it appears that 
web2 had a sort of consumer API that allowed the Resource to handle the stream. 
I'm still reading documentation and trying to figure out how I can implement 
that in twisted.web itself. Thoughts on that would be appreciated.

-Jared

-----Original Message-----
From: twisted-python-boun...@twistedmatrix.com 
[mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of Christopher 
Armstrong
Sent: Thursday, December 10, 2009 10:04 AM
To: Twisted general discussion
Subject: Re: [Twisted-Python] web vs web2 clarification

On Thu, Dec 10, 2009 at 11:40 AM, Jared Gisin <jared.gi...@isilon.com> wrote:
> I’m curious if anyone can shed some light on the  following sentence which
> is taken from “http://twistedmatrix.com/trac/wiki/WebDevelopmentWithTwisted”
>
> “We decided this was a mistake and development focus has shifted to porting
> the best parts of Twisted Web 2 back to Twisted Web where existing
> applications will benefit from them.”
>
> I’m curious as to why twisted web2 was a mistake what is  the fundamental
> difference between web and web2?

While Jean-Paul got the general idea, I think you were asking about
something a little more specific, and I hope to address that:

There were many differences between web and web2; a lot of the APIs
were better, and some weren't. However, the quoted sentence was not
referring to the quality of the APIs and their technical merits so
much as the fact that they were completely incompatible with
twisted.web. This is where Jean-Paul's answer comes in.

Hope this helps,

-- 
Christopher Armstrong
http://radix.twistedmatrix.com/
http://planet-if.com/

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to