CGI -> mod_python

2006-10-02 Thread [EMAIL PROTECTED]
Hi, it is a kind of nooby question. Is there a way to transfer a CGI python script to mod_python without rewriting the code? Thanks. Bernhard -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI -> mod_python

2006-10-02 Thread Thomas Jollans
On Mon, 02 Oct 2006 22:07:26 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> let this slip: > Hi, > > it is a kind of nooby question. Is there a way to transfer a CGI python > script to mod_python without rewriting the code? Not that I know of, but thanks to the WSGI (specified in PEP 333: http:/

Re: CGI -> mod_python

2006-10-03 Thread grahamd
[EMAIL PROTECTED] wrote: > Hi, > > it is a kind of nooby question. Is there a way to transfer a CGI python > script to mod_python without rewriting the code? Did you look in the mod_python documentation? http://www.modpython.org/live/current/doc-html/hand-cgi.html It certainly isn't the prefe

Re: CGI -> mod_python

2006-10-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > it is a kind of nooby question. Is there a way to transfer a CGI python > script to mod_python without rewriting the code? Had you used WebStack [1] to begin with, this migration would involve changing a few lines of glue code. However, as others have pointed out, WSGI

Re: CGI -> mod_python

2006-10-03 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Paul Boddie wrote: >> it is a kind of nooby question. Is there a way to transfer a CGI python >> script to mod_python without rewriting the code? > > Had you used WebStack [1] to begin with, this migration would involve > changing a few lines of glue code. Or Jonpy

Re: CGI -> mod_python

2006-10-03 Thread Eric S. Johansson
Thomas Jollans wrote: > Not that I know of, but thanks to the WSGI (specified in PEP 333: > http://www.python.org/dev/peps/pep-0333/) you should be able to convert > your app to WSGI, which will run on mod_python, relatively easily > (depending on your code; 'print' won't work anymore) I assume th

RE: CGI -> mod_python

2006-10-03 Thread Sells, Fred
I'm confused. is WSGI only a specification, or are there implementations, and if so which ones -- http://mail.python.org/mailman/listinfo/python-list

RE: CGI -> mod_python

2006-10-03 Thread Damjan
> I'm confused. > > is WSGI only a specification, or are there implementations, and if so > which ones WSGI is only a specification. There are a lot of implementations: servers, middleware and almost all new Python web apps and frameworks are WSGI applications. Here is a list of WSGI servers (se