Problem with running python cgi scripts through my browser

2012-04-20 Thread kreta06
Dear Python Tutors, I am having problems trying to send an email (using the smtplib module ) to send an email to myself over my browser using a python script, which is being called by an html form that I have created. My python cgi script is located in my cgi-bin directory, which I had made sure t

Permission Issues in python cgi scripts on Apache 2.2 on OSX Leopard

2008-11-14 Thread Dan Yamins
Using Apache 2.2 on my local OSX machine, I;ve set up a virtual host to serve a directory that a project of mine is in. In this directory, I have some python .cgi scripts that I use to dynamically generated locally-used html code. In several places,scripts that work fine when not run as .cgi

Re: Problems with running Python CGI Scripts

2008-09-03 Thread Gabriel Genellina
En Wed, 03 Sep 2008 05:29:39 -0300, Edward FISHER <[EMAIL PROTECTED]> escribi�: I can get the script to run the python script but all that happens is that the black python box appears then disapears, the html that the python scripts should generate is never output. [...] This is calling th

Problems with running Python CGI Scripts

2008-09-03 Thread Edward FISHER
Hey guys. Im having problems running a python cgi. Im using the example code from: http://www.python.org/doc/essays/pp...east/sld041.htm as writen by Van Rossum himself I can get the script to run the python script but all that happens is that the black python box appears then disapears, the htm

Using Python Scripts with IIS - ASP or Python-based CGI scripts with IIS - which makes more sense?

2008-06-27 Thread davidj411
when does is make sense to use a ASP style Page (.psp) over a Python- based CGI script with IIS. ? http://support.microsoft.com/kb/276494 ASP requires registering the python engine. which has better performance? The ASP style uses a new part of the python language which is unfamiliar to me, e.g.

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-08 Thread Graham Dumpleton
On Dec 9, 12:26 am, Michael Ströder <[EMAIL PROTECTED]> wrote: > Jeffrey Froman wrote: > > > I'd still be interested in a mod_wsgi wrapper for 3rd-party CGI scripts. > > I doubt that this is possible, not because of the interface. But > conventional CGI scripts are

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-08 Thread Istvan Albert
On Dec 8, 8:26 am, Michael Ströder <[EMAIL PROTECTED]> wrote: > But conventional CGI scripts are implemented with the assumption of being > stateless. while it might be that some CGI scripts must be executed in a new python process on each request, common sense and good programmi

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-08 Thread Michael Ströder
Jeffrey Froman wrote: > > I'd still be interested in a mod_wsgi wrapper for 3rd-party CGI scripts. I doubt that this is possible, not because of the interface. But conventional CGI scripts are implemented with the assumption of being stateless. You would have to completely reinitiali

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-07 Thread Jeffrey Froman
teps were basically: 1. accept environ and start_response parameters in the handler's __init__ 2. return output from __iter__ instead of writing it to stdout. 3. pass environ and wsgi.input to the cgi.FieldStorage() parser. I'd still be interested in a mod_wsgi wrapper for 3rd-party CGI s

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-11-28 Thread Graham Dumpleton
itten in C, > which connects to a running SCGI server. > > Executing this small binary on every request is no big overhead. > > Nevertheless I never used it. That isn't the same as what is being talked about here with unmodified CGI scripts running under mod_wsgi. That program yo

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-11-28 Thread Thomas Guettler
Istvan Albert schrieb: > It will be awesome if mod_wsgi can run CGI without invoking python on > each access. For SCGI there is something like this: cgi2scgi: it is small executable written in C, which connects to a running SCGI server. Executing this small binary on every request is no big over

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-11-27 Thread Istvan Albert
On Nov 25, 1:55 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > The other question is whether there is even a demand for this. Do > people want to be able to take unmodified Python CGI scripts and try > to run them persistently in this way, or would they be better off >

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-11-26 Thread Jeffrey Froman
Graham Dumpleton wrote: > The other question is whether there is even a demand for this. Do > people want to be able to take unmodified Python CGI scripts and try > to run them persistently in this way, or would they be better off > converting them to proper WSGI applications. I woul

Running unmodified CGI scripts persistently under mod_wsgi.

2007-11-24 Thread Graham Dumpleton
may slow its adoption could be the need of > > running plain old CGI in an efficient way. I'm not sure how that fits > > into the WSGI picture. > > Do note that using mod_wsgi doesn't preclude you still running plain > old CGI scripts using mod_cgi or mod_cgid. As

Re: cgi scripts in Mac OS X

2007-10-20 Thread James Stroud
ion and whatnot. Do yourself a favor and give > 'http://httpd.apache.org/docs/2.2/howto/cgi.html' a read over as it's > going to cover a lot more than I just did. I want to reply to Jeff instead of the original posting, so you don't go through all this trouble. The apache dis

Re: cgi scripts in Mac OS X

2007-10-20 Thread Jeff McNeil
wto/cgi.html' a read over as it's going to cover a lot more than I just did. Jeff On 10/20/07, Brian Shine <[EMAIL PROTECTED]> wrote: > I'm trying to get cgi scripts to work. I can link to the python > script, but instead of running and producing an output, it prints the

cgi scripts in Mac OS X

2007-10-20 Thread Brian Shine
I'm trying to get cgi scripts to work. I can link to the python script, but instead of running and producing an output, it prints the script on the page. I've obviously missed a step in setting it up, but I can't see what it is. Thanks in advance, Brian Shine -- http://

Re: CGI scripts

2006-04-18 Thread Tim Roberts
"Jay" <[EMAIL PROTECTED]> wrote: > >Can I use Python for CGI scripts. It is telling me to use Perl and I >don't know any > >To be honest I don't really no what CGI scripts are (soz) > >I have purchased a domain name of my ISP PIPEX and 100MB space Ac

Re: CGI scripts

2006-04-17 Thread Daniel Nogradi
> > Can I use Python for CGI scripts. It is telling me to use Perl and I > > don't know any > > > > To be honest I don't really no what CGI scripts are (soz) > > > > I have purchased a domain name of my ISP PIPEX and 100MB space > > > > A

Re: CGI scripts

2006-04-17 Thread Daniel Nogradi
> Can I use Python for CGI scripts. It is telling me to use Perl and I > don't know any > > To be honest I don't really no what CGI scripts are (soz) > > I have purchased a domain name of my ISP PIPEX and 100MB space > > And I don't know what I can do with it

CGI scripts

2006-04-17 Thread Jay
Can I use Python for CGI scripts. It is telling me to use Perl and I don't know any To be honest I don't really no what CGI scripts are (soz) I have purchased a domain name of my ISP PIPEX and 100MB space And I don't know what I can do with it now OPPs Jay Dee -- http://

Re: Cgi scripts in apache not working

2005-07-28 Thread Bruno Desthuilliers
David a écrit : > I've looked all over the place for an answer, and the only one I can > find doesn't mean anything to me. The end of line issue with writting > it in Windows and then uploading it doesn't help me since I'm doing > this all from Linux. I've bee

Re: Cgi scripts in apache not working

2005-07-28 Thread Paul Boddie
David wrote: > > httpd.conf: > > << Tried it with "" and no "" > Options ExecCGI << Tried with "Options +ExecCGI" > AddHandler cgi-script .cgi .py << Tried with "SetHandler > cgi-script", but still no go > > > > error_log: > > [Thu Jul 28 11:44:53 2005] [er

Cgi scripts in apache not working

2005-07-28 Thread David
I've looked all over the place for an answer, and the only one I can find doesn't mean anything to me. The end of line issue with writting it in Windows and then uploading it doesn't help me since I'm doing this all from Linux. I've been trying to get python cgi scripts

Re: Running python cgi scripts that require external cvs under apache

2005-05-06 Thread Noah
How do you run the cvs binary from your script? If this is a simple CGI that calls os.popen() or os.system() then the cvs binary is most likely running as the same user as the Apache HTTP server (usually someone like "nobody", "apache", or "www"). http://cgiwrap.unixtools.org/ is one solution. Al

Running python cgi scripts that require external cvs under apache

2005-05-06 Thread chris . levis
All: I have written a Python webapp under MS IIS 5.0 that does the following: -Does a CVS checkout of a particular bit of xml -Gets a list of valid cvs tags for that xml file -Based on user input via forms, modifies that xml -CVS checkin's that file To have correct

Re: any good, free web hosts supporting python cgi scripts?

2004-12-06 Thread araspus
please come to my website www.arasp.net You may be qualified. for my hosting plans. -- http://mail.python.org/mailman/listinfo/python-list