2 May 2006 06:04
Re: [Python-Dev] Adding wsgiref to stdlib
I don't pipe up much but dispatch has been on my mind for a while as I have been working on this: http://lukearno.com/projects/selector/ I think dispatching is best left as an (obvious) exercise to the reader. What dispatching makes sense, what metaphor or technique should be applied, is situational. When I see other WSGI servers requiring a list of prefix/app pairs in their init signature, I am put off. The server's job is to translate HTTP (or SCGI, FCGI, etc.) to WSGI. Just do that. To me WSGI is not just the freedom of frameworks interoperating, but the freedom _from_ frameworks. The stack can be unbundled and I can pick the the best thing for my needs at each layer, à la carte. - Luke http://lukearno.com/ _______________________________________________ Web-SIG mailing list Web-SIG@... Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org(Continue reading)
>From reading this, it seems that there is no CGI-to-WSGI gateway in
wsgiref. Would it be worth adding one (or did I miss it)? I'm thinking
of a case where I have a WSGI application, but no easy way of hosting
anything other than CGI. In that situation, being able to wrap my
application in a CGI-to-WSGI gateway would be useful - and having one
in the standard library would avoid me having to cut and paste the
run_with_cgi code from PEP 333 into each of my scripts...
Does this make any sense?
Paul.
_______________________________________________
Web-SIG mailing list
RSS Feed