[Web-SIG] Re: Just lost another one to Rails
ianb at colorstudy.com
Fri Apr 15 22:10:15 CEST 2005
Ryan Tomayko wrote:
> On Apr 15, 2005, at 3:52 PM, Blake Winton wrote:
>>> I'd personally love to see a common set of request/response/session
>>> objects (a la Paul's webstack) be adopted.
>> Isn't that what WSGI offers?
> Perhaps I need to look closer but my assumption after a pass through the
> PIP a while ago was that it was more of standard way of getting the
> information to and from the framework ("middleware") and likely not
> meant to reach the presentation and controllerish code.
Well, at a certain level you could create the request object that you
desire given the WSGI environment, and possibly extract that environment
from request objects that already exist. However, that leaves an API
disconnect that would probably be a bit uncomfortable. Admittedly, for
ZPTKit I made a dictionary-like request object to make the transition
from Zope easier (and because dictionary-like requests are easier to use).
I would like to see a more limited set of request object APIs, but you
can't really do that in a backward-compatible way.
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Web-SIG