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
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
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
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
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.
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
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
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
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
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
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
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
>
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
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
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
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
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://
"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
> > 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
> 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
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://
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
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
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
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
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
please come to my website www.arasp.net You may be qualified. for my
hosting plans.
--
http://mail.python.org/mailman/listinfo/python-list
27 matches
Mail list logo