Re: [Web-SIG] Proposal for asynchronous WSGI variant

2008-05-05 Thread Graham Dumpleton
2008/5/6 Christopher Stawarz <[EMAIL PROTECTED]>: > (I'm new to the list, so please forgive me for making my first post a > specification proposal :) > > Browsing through the list archives, I see there's been some > inconclusive discussions on adding better support for asynchronous web > server

[Web-SIG] Proposal for asynchronous WSGI variant

2008-05-05 Thread Christopher Stawarz
(I'm new to the list, so please forgive me for making my first post a specification proposal :) Browsing through the list archives, I see there's been some inconclusive discussions on adding better support for asynchronous web servers to the WSGI spec. Since such support would be very useful for

Re: [Web-SIG] [proposal] wsgiref.util.abs_url

2008-05-05 Thread Phillip J. Eby
At 06:27 PM 5/5/2008 +0200, Manlio Perillo wrote: Phillip J. Eby ha scritto: I think that it doesn't accept a relative URL, it accepts an absolute path. What do you mean? environ = {} setup_testing_defaults(environ) url = '/a/b/' That's a relative URL that's also an absolute path. Try

Re: [Web-SIG] [proposal] wsgiref.util.abs_url

2008-05-05 Thread Manlio Perillo
Phillip J. Eby ha scritto: At 11:03 PM 5/2/2008 +0200, Manlio Perillo wrote: Hi. I think that a function like (not tested): def abs_url(environ, relative_url): """Return the absolute url""" [...] url += quote(relative_url) return url would be an useful addition to the wsgiref.ut