Debug python CGI
Steven Feil
sfeil at io.com
Fri Jan 25 23:45:54 EST 2002
Does the python CGI module have a test mode where the script can be
executed from a command line instead of web server? It seams strait
forward to make a cgi.Debug class as a replacement for the
cgi.FieldStorage class. All that would be needed for a Debug class is
an __init__() method could read the data from a text file. the Debug
class would then have a set of methods that correspond to the methods
of FieldStorage. I have used a C-language CGI library that took a
similar approach, however is wasn't object oriented. I could write
such a class, but it seams like that someone would have already
created such a module.
Does anyone know if something like this has already been done for
Python?
========================================================================
Steven Feil | Gram-pa, back at the turn of the .~.
Programmer/Developer | century, why did people use an /V\
sfeil at io.com | operating system, when they were not // \\
| allowed to see the source code? (X_X)
========================================================================
More information about the Python-list
mailing list