Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Gustavo Narea
Hello, Maybe I'm missing something obvious, but if the gateway doesn't support applications that return write() callables, then it's not WSGI. A callable that raises an exception does not even count. It's obvious that they must not raise exceptions -- Then what's the point of providing the callab

Re: [Web-SIG] IIS and Python CGI - how do I see more than just the form data?

2010-04-09 Thread And Clover
J.D. Main wrote: I want to see the entire HTTP request with everything inside it. You won't get that as a CGI (or WSGI) application. It is the web server's job to parse the headers of the request, choose what host and script that maps to, and make them available to you (in the environ dicti

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread René Dudfield
On Fri, Apr 9, 2010 at 1:46 PM, Manlio Perillo wrote: > > By the way, as a matter of curiosity. > WSGI 1.0 states: > > """The start_response callable must return a write(body_data) callable > that takes one positional parameter: a string to be written as part of > the HTTP response body. (Note: th

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Manlio Perillo
Graham Dumpleton ha scritto: > On 9 April 2010 22:15, Manlio Perillo wrote: >> Graham Dumpleton ha scritto: >>> [...] But since the write callable **can** be implemented in a middleware (using greenlets) and since middlewares *can* be configured inside WSGI gateway, implementations

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Graham Dumpleton
On 9 April 2010 22:15, Manlio Perillo wrote: > Graham Dumpleton ha scritto: >> [...] >>> But since the write callable **can** be implemented in a middleware >>> (using greenlets) and since middlewares *can* be configured inside WSGI >>> gateway, implementations can still claim to be WSGI 1.0 confo

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Manlio Perillo
Graham Dumpleton ha scritto: > [...] >> But since the write callable **can** be implemented in a middleware >> (using greenlets) and since middlewares *can* be configured inside WSGI >> gateway, implementations can still claim to be WSGI 1.0 conformant. > > Then only the higher level middleware ad

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Graham Dumpleton
On 9 April 2010 21:29, Manlio Perillo wrote: > Graham Dumpleton ha scritto: >> [...] >>>    - the name will be 'wsgiorg.suspend' instead of 'wsgi.pause_output' >>> >>>      The wsgiorg namespace is used, since the plan is to have it >>>      standardized [1], but it can only be implemented on asyn

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Manlio Perillo
Graham Dumpleton ha scritto: > [...] >>- the name will be 'wsgiorg.suspend' instead of 'wsgi.pause_output' >> >> The wsgiorg namespace is used, since the plan is to have it >> standardized [1], but it can only be implemented on asynchronous >> servers. > > Please read: > > ht

Re: [Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Graham Dumpleton
On 9 April 2010 21:00, Manlio Perillo wrote: > I have started to write an asynchronous WSGI implementation for Twisted Web. > > The standard implementation execute the WSGI application in a separate > thread. > twsgi will instead execute the application in the main Twisted thread. > > The advantag

[Web-SIG] [ANN] twsgi: asynchronous WSGI implementation for Twisted Web

2010-04-09 Thread Manlio Perillo
I have started to write an asynchronous WSGI implementation for Twisted Web. The standard implementation execute the WSGI application in a separate thread. twsgi will instead execute the application in the main Twisted thread. The advantage is that twsgi is better integrated in Twisted, and WSGI