M.E.Farmer wrote:
> I found an excellent example that was posted by the F-bot.
> Fredrik LundhMay 26 2000
Python has since grown the cgitb module. Putting
import cgitb; cgitb.enable()
at the top of your cgi script may be even more convenient than using the
Lundhian wrapper.
Peter
-
Jason Mobarak wrote:
M.E.Farmer wrote:
I found an excellent example that was posted by the F-bot.
[...]
try:
import myscript
myscript.main()
except:
print "Content-Type:", "text/html"
print
file = StringIO.StringIO()
Note: it's usually a very bad idea to name -anything- "file" unles
M.E.Farmer wrote:
> I found an excellent example that was posted by the F-bot.
[...]
> try:
> import myscript
> myscript.main()
> except:
> print "Content-Type:", "text/html"
> print
> file = StringIO.StringIO()
Note: it's usually a very bad idea to name -anything- "file" unles
I found an excellent example that was posted by the F-bot.
Fredrik Lundh May 26 2000
From: "Fredrik Lundh" <[EMAIL PROTECTED]>
Date: 2000/05/26
richard_chamberl...@ wrote:
> I'm having great difficulties getting Python to work via CGI.
> Is there anyway I can get the traceback on to the web p
Just in case you don't have a clue what they are talking about ;)
import traceback
try:
#your stuff here
except:
traceback.print_exc()
That should return any exceptions you may be throwing.
--
http://mail.python.org/mailman/listinfo/python-list
If you just want to wrap an existing python script - but pass arguments
from a web interface, it ought to be very easy.
You'll need to understand CGI of course. There's a good free article
about getting started with CGI over at PyZine ( http://www.pyzine.com )
;-)
Can you confirm that your CGI is
Probably going to need more information about how mplayer is not being
accessed correctly.
CGI uses the shell environment to pass web information to a program...
so maybe this is messing up mplayer. You'll need to augment or wrap
your partners program in order to give you more information about
wh