Re: Quickest way to make py script Web accessible

2006-01-07 Thread Fuzzyman
Turning a script into a CGI is a brain-dead easy way of web-enabling a script. You could even make the script dual purpose by checking for the existence of CGI environment variables. If they exist the script is running as a CGI. There are lots of resources on the internet on how to write CGIs.

Quickest way to make py script Web accessible

2006-01-05 Thread [EMAIL PROTECTED]
What is the quickiest and easiest way to make a py script run on a Web server? I have access to an Apache Web server running on Linux. I'm often asked to run some of my scripts on behalf of others. My hope is to make a simple Web-based interface where people could run the scripts themselves

Re: Quickest way to make py script Web accessible

2006-01-05 Thread Todd
[EMAIL PROTECTED] wrote: What is the quickiest and easiest way to make a py script run on a Web server? I have access to an Apache Web server running on Linux. I'm often asked to run some of my scripts on behalf of others. My hope is to make a simple Web-based interface where people could

Re: Quickest way to make py script Web accessible

2006-01-05 Thread Jim
[EMAIL PROTECTED] wrote: What is the quickiest and easiest way to make a py script run on a Web server? I have access to an Apache Web server running on Linux. I'm often asked to run some of my scripts on behalf of others. My hope is to make a simple Web-based interface where people could run

Re: Quickest way to make py script Web accessible

2006-01-05 Thread Luis M. González
Karrigell lets you run pure python scripts, although not directly in Apache. It uses its own server running behind apache. You can code in 4 styles: -pure python scripts -python in html (like in PHP) -html in python -karrigell services (mapping functions to urls) http://karrigell.sf.net Hope

Re: Quickest way to make py script Web accessible

2006-01-05 Thread jmdeschamps
[EMAIL PROTECTED] wrote: What is the quickiest and easiest way to make a py script run on a Web server? I have access to an Apache Web server running on Linux. I'm often asked to run some of my scripts on behalf of others. My hope is to make a simple Web-based interface where people could

Re: Quickest way to make py script Web accessible

2006-01-05 Thread [EMAIL PROTECTED]
I apologize for my inital ambiguity. Say I have a .py script that gets email addresses from a database and then sends messages to customers (this is not spam, these guys _want_ to get the emails). Historically, IT has executed the script when someone in Marketing makes a request. I want to make

Re: Quickest way to make py script Web accessible

2006-01-05 Thread [EMAIL PROTECTED]
This works well! Thanks for the advice. The docs for it should include something about adding content_type = 'text\plain' otherwise, the 'testing' section of the tutorial is broken It should look like this: from mod_python import apache def handler(req): req.content_type = 'text/plain'

Re: Quickest way to make py script Web accessible

2006-01-05 Thread [EMAIL PROTECTED]
Thank you all for the advice and suggestions. I appreciate the time you took to help! -- http://mail.python.org/mailman/listinfo/python-list

Re: Quickest way to make py script Web accessible

2006-01-05 Thread jmdeschamps
[EMAIL PROTECTED] wrote: I apologize for my inital ambiguity. Say I have a .py script that gets email addresses from a database and then sends messages to customers (this is not spam, these guys _want_ to get the emails). Historically, IT has executed the script when someone in Marketing