Re: argument to python cgi script

2008-04-10 Thread Gabriel Genellina
En Wed, 09 Apr 2008 11:14:33 -0300, syed mehdi <[EMAIL PROTECTED]> escribió: > Hi Guys, > If someone can help me in telling how can i pass arguments to python cgi > script then that will be good. > like if i want to pass "some argument" to my remote python script,

argument to python cgi script

2008-04-09 Thread syed mehdi
Hi Guys, If someone can help me in telling how can i pass arguments to python cgi script then that will be good. like if i want to pass "some argument" to my remote python script, by calling something like: http://localhost/cgi-bin/test.py?some\ argument. What is the correct way

Re: Python CGI script and CSS style sheet

2008-01-23 Thread epsilon
Tim, Thanks for the information and I'll work with you suggestions. Also, I will let you know what I find. Thanks again, Christopher Tim Chase wrote: > > I'm working with a Python CGI script that I am trying to use with an > > external CSS (Cascading Style Sheet) and it

Re: Python CGI script and CSS style sheet

2008-01-23 Thread Tim Chase
> I'm working with a Python CGI script that I am trying to use with an > external CSS (Cascading Style Sheet) and it is not reading it from the > web server. The script runs fine minus the CSS formatting. Does > anyone know if this will work within a Python CGI? It seems that

Python CGI script and CSS style sheet

2008-01-23 Thread epsilon
All: I'm working with a Python CGI script that I am trying to use with an external CSS (Cascading Style Sheet) and it is not reading it from the web server. The script runs fine minus the CSS formatting. Does anyone know if this will work within a Python CGI? It seems that line 18 is not

Re: run a script and supply commands from a python cgi script

2006-12-14 Thread Larry Bates
umentation that comes with the script you wish to run > > The thing is like this. I need to set up a module on my server, but i > cant access the server with a comand line. So I want to run setup.py > script (I nead to run setup.py to setup up the module) from a python > cgi script

run a script and supply commands from a python cgi script

2006-12-14 Thread moishyyehuda
run setup.py script (I nead to run setup.py to setup up the module) from a python cgi script, and supply commands from the script. So if any one can help me with this I would appreciate it. Moishy -- http://mail.python.org/mailman/listinfo/python-list

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-23 Thread Christophe
Steve Holden a écrit : > Debashis Dey wrote: > >> Hello, >> >> I have a python CGI program. I would like to show a graph within a >> HTML plage. I would like to dynamically generate the graph using the >> python CGI script on the web server side and send it

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-23 Thread paron
Steve Holden wrote: > Debashis Dey wrote: > > Hello, > > > > I have a python CGI program. I would like to show a graph within a HTML > > plage. I would like to dynamically generate the graph using the python > > CGI script on the web server side and send it to th

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-22 Thread Christoph Zwerschke
Xavier Morel wrote: > Well, some people have been crazy enough lately to generate more or less > imageless bar graphs though, see Eric Meyer's "Bar Graphs with Style" > (http://meyerweb.com/eric/thoughts/2005/12/20/bar-graphs-with-style/) > for more informations on the subject > (http://meyerwe

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-21 Thread John M. Gabriele
Luiz Geron wrote: > I don't have experience on this, but I think that you can make the > script return the image "contents" directly to the img tag, without > passing it to a img file, so you can use something like this: > > > > wich saves some processing and I/O. > I like this method. You ha

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-21 Thread Fuzzyman
Steve Holden wrote: > Luiz Geron wrote: > > I don't have experience on this, but I think that you can make the > > script return the image "contents" directly to the img tag, without > > passing it to a img file, so you can use something like this: > > > > > > > > wich saves some processing and I

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-21 Thread Fuzzyman
Steve Holden wrote: > Luiz Geron wrote: > > I don't have experience on this, but I think that you can make the > > script return the image "contents" directly to the img tag, without > > passing it to a img file, so you can use something like this: > > > > > > > > wich saves some processing and I

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread chris
This is a cool product that can produce any number of types of graphs. Supports Python, as well as lots of other languages. I have used it with success. There is a free version, as long as you don't mind the tiny logo they put into each graph. http://www.advsofteng.com/ -Chris -- http://mail.

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Steve Holden
David Wahler wrote: > Xavier Morel wrote: > >>Steve Holden wrote: >> >>>Luiz Geron wrote: >>> I don't have experience on this, but I think that you can make the script return the image "contents" directly to the img tag, without passing it to a img file, so you can use something like t

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread David Wahler
Xavier Morel wrote: > Steve Holden wrote: > > Luiz Geron wrote: > >> I don't have experience on this, but I think that you can make the > >> script return the image "contents" directly to the img tag, without > >> passing it to a img file, so you can use something like this: > >> > >> > >> > >> wi

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Xavier Morel
Steve Holden wrote: > Luiz Geron wrote: >> I don't have experience on this, but I think that you can make the >> script return the image "contents" directly to the img tag, without >> passing it to a img file, so you can use something like this: >> >> >> >> wich saves some processing and I/O. >> >

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Steve Holden
Luiz Geron wrote: > I don't have experience on this, but I think that you can make the > script return the image "contents" directly to the img tag, without > passing it to a img file, so you can use something like this: > > > > wich saves some processing and I/O. > No it doesn't, because the s

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Max Erickson
Sparklines is a script that does exactly what you are asking using python and PIL: http://bitworking.org/projects/sparklines/ max -- http://mail.python.org/mailman/listinfo/python-list

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Luiz Geron
I don't have experience on this, but I think that you can make the script return the image "contents" directly to the img tag, without passing it to a img file, so you can use something like this: wich saves some processing and I/O. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Xavier Morel
Steve Holden wrote: > Debashis Dey wrote: >> Hello, >> >> I have a python CGI program. I would like to show a graph within a HTML >> plage. I would like to dynamically generate the graph using the python >> CGI script on the web server side and send it to th

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread Steve Holden
Debashis Dey wrote: > Hello, > > I have a python CGI program. I would like to show a graph within a HTML > plage. I would like to dynamically generate the graph using the python > CGI script on the web server side and send it to the browser. > > My question is how can I

How to generate graphics dynamically on the web using Python CGI script?

2006-01-19 Thread Debashis Dey
Hello,   I have a python CGI program. I would like to show a graph within a HTML plage. I would like to dynamically generate the graph using the python CGI script on the web server side and send it to the browser.   My question is how can I do this in python? Is there a free tool to do this? Can

RE: python cgi script not understood as html

2005-10-25 Thread Iyer, Prasad C
Your python script is not getting executed. I guess there is something wrong with the server configuration. #-Original Message- #From: Philippe C. Martin [mailto:[EMAIL PROTECTED] #Sent: Tuesday, October 25, 2005 1:27 AM #To: python-list@python.org #Subject: python cgi script not

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
It is, thanks. Philippe Peter Hansen wrote: > Philippe C. Martin wrote: >> The following code outputs the actual HTML text to the browser, not the >> interpreted text. >> >> html_ok = """ >> Content-Type: text/html\n >> > "http://www.w3.org/TR/html4/loose.dtd";>\n > > HTTP header lines must

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
Many thanks !! Regards, Philippe Mitja Trampus wrote: > Philippe C. Martin wrote: >> Hi, >> >> The following code outputs the actual HTML text to the browser, not the >> interpreted text. >> >> Any idea ? >> >> html_ok = """ >> Content-Type: text/html\n > > > > ... > > """ > > Avoid t

Re: python cgi script not understood as html

2005-10-24 Thread Peter Hansen
Philippe C. Martin wrote: > The following code outputs the actual HTML text to the browser, not the > interpreted text. > > html_ok = """ > Content-Type: text/html\n > "http://www.w3.org/TR/html4/loose.dtd";>\n HTTP header lines must end with \r\n, not just with \n. Not sure this is the soluti

Re: python cgi script not understood as html

2005-10-24 Thread Mitja Trampus
Philippe C. Martin wrote: > Hi, > > The following code outputs the actual HTML text to the browser, not the > interpreted text. > > Any idea ? > > html_ok = """ > Content-Type: text/html\n > > ... > """ Avoid the starting newline (before content-type). Add at least TWO newlines after conten

Re: python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
the title should say "python cgi script html output not understood as html" Philippe C. Martin wrote: > Hi, > > The following code outputs the actual HTML text to the browser, not the > interpreted text. > > Any idea ? > > Regards, > > Philippe >

python cgi script not understood as html

2005-10-24 Thread Philippe C. Martin
Hi, The following code outputs the actual HTML text to the browser, not the interpreted text. Any idea ? Regards, Philippe import cgi import logging import auth #this is the one you must implement (or use SCF ;-) html_ok = """ Content-Type: text/html\n http://www.w3.org/TR/html4/loose.dtd";>\n

Re: cgi relay for python cgi script

2005-10-04 Thread Michael Ekstrand
On Oct 4, 2005, at 2:35 AM, Amir Michail wrote: > Is there an easy way to execute a python cgi script on a different > machine from the cgi server? > > I could write my own server, but I was wondering if something is > available that would allow me to use a cgi script as is without

Re: cgi relay for python cgi script

2005-10-04 Thread Paul Rubin
"Amir Michail" <[EMAIL PROTECTED]> writes: > Is there an easy way to execute a python cgi script on a different > machine from the cgi server? What exactly do you mean by that? You can set a form target to another machine, if that's what you mean. -- http://mail.

Re: cgi relay for python cgi script

2005-10-04 Thread Steve Holden
Amir Michail wrote: > Fredrik Lundh wrote: > >>Amir Michail wrote: >> >> >>>Is there an easy way to do this without modifying the configuration of >>>the cgi server and without running a cgi server on the other machine >>>where the script will actually run? >>> >>>Perhaps someone wrote a simple se

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: > Amir Michail wrote: > > > Is there an easy way to do this without modifying the configuration of > > the cgi server and without running a cgi server on the other machine > > where the script will actually run? > > > > Perhaps someone wrote a simple server that provides the re

Re: cgi relay for python cgi script

2005-10-04 Thread Fredrik Lundh
Amir Michail wrote: > Is there an easy way to do this without modifying the configuration of > the cgi server and without running a cgi server on the other machine > where the script will actually run? > > Perhaps someone wrote a simple server that provides the required > environment for the cgi s

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: > Amir Michail wrote: > > > Is there an easy way to execute a python cgi script on a different > > machine from the cgi server? > > http://www.google.com/search?q=reverse+proxy > > Is there an easy way to do this without modifying the confi

Re: cgi relay for python cgi script

2005-10-04 Thread Fredrik Lundh
Amir Michail wrote: > Is there an easy way to execute a python cgi script on a different > machine from the cgi server? http://www.google.com/search?q=reverse+proxy -- http://mail.python.org/mailman/listinfo/python-list

cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Hi, Is there an easy way to execute a python cgi script on a different machine from the cgi server? I could write my own server, but I was wondering if something is available that would allow me to use a cgi script as is without modification. Amir -- http://mail.python.org/mailman/listinfo

RE: Python CGI Script

2005-10-02 Thread Iyer, Prasad C
tml page. Note :- Set "Content-type" to "text/html" I guess this should work regards prasad chandrasekaran --- Cancer cures smoking -Original Message- From: Efrat Regev [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 4:20 PM To: python-list@py

Re: Python CGI Script

2005-10-02 Thread Ivan Herman
nfigure. Actually, in case you run on a MacOS X by any chance, Apache is already installed afaik... I hope this helps Ivan Original Message From: Efrat Regev <[EMAIL PROTECTED]> To: Subject: Python CGI Script Date: 30/9/2005 12:50 > Hello, > > I'm a

Re: Python CGI Script

2005-10-02 Thread Steve Holden
Efrat Regev wrote: > Hello, > > I'm a data-structures course TA trying to write a python CGI script > for automatically compiling and testing students' projects. > Unfortunately, I've run into some questions while writing this, which I > couldn'

Python CGI Script

2005-10-02 Thread Efrat Regev
Hello, I'm a data-structures course TA trying to write a python CGI script for automatically compiling and testing students' projects. Unfortunately, I've run into some questions while writing this, which I couldn't solve with the various (and helpful) pyth

Re: need help with nullmailer-inject in python cgi script to send attachements ?

2005-03-24 Thread tvmaly
Thank you Denis Ty -- http://mail.python.org/mailman/listinfo/python-list

Re: need help with nullmailer-inject in python cgi script to send attachements ?

2005-03-24 Thread Denis S. Otkidach
On 24 Mar 2005 05:20:06 -0800 [EMAIL PROTECTED] wrote: TC> Due to the restrictions I have at my host, I cannot use smtplib in TC> my email cgi script. They gave me a script they use that calls TC> nullmailer-inject. I am trying to figure out how to add the TC> ability to send attachments via th

need help with nullmailer-inject in python cgi script to send attachements ?

2005-03-24 Thread tvmaly
Due to the restrictions I have at my host, I cannot use smtplib in my email cgi script. They gave me a script they use that calls nullmailer-inject. I am trying to figure out how to add the ability to send attachments via the nullmailer-inject call. I could not find much documentation on google