Re: CGI - mod_python
[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 preferred way of using mod_python. You really should consider porting it properly to either mod_python or as someone else suggested, WSGI. Graham -- http://mail.python.org/mailman/listinfo/python-list
Re: CGI - mod_python
[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 may be an appropriate API to target for a modest rewrite of the code, given substantial resemblances to aspects of the CGI API. Paul [1] http://www.python.org/pypi/WebStack -- http://mail.python.org/mailman/listinfo/python-list
Re: CGI - mod_python
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 ;-) http://jonpy.sf.net/ -- http://mail.python.org/mailman/listinfo/python-list
Re: CGI - mod_python
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 this is the library one could use if you were running on Python 2.3 or 2.4 http://cheeseshop.python.org/pypi/wsgiref --- eric -- http://mail.python.org/mailman/listinfo/python-list
RE: CGI - mod_python
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
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 (server gateways) http://wsgi.org/wsgi/Servers Start from here to learn more: http://wsgi.org/wsgi/Learn_WSGI Then come back, we'll discuss -- damjan -- http://mail.python.org/mailman/listinfo/python-list
CGI - mod_python
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
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://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) -- Thomas Jollans alias free-zombie -- http://mail.python.org/mailman/listinfo/python-list