Updating CVS
Thomas Guettler
pan-newsreader at thomas-guettler.de
Mon Apr 7 13:52:22 EDT 2003
On Mon, 07 Apr 2003 18:35:13 +0200, Mike wrote:
> Hello,
>
> I wrote the following python web script to update a CVS directory and I
> don't receive any errors when executing it; however, the directory
> doesn't update.
>
> #!/usr/bin/python
>
> import cgi, os, urllib, sys
Since you import cgi, I assume you are writing a cgi script.
Which web server do you use?
Try running the script from the shell.
Have a look at the error log of you web server.
You can run the script in a wrapper like this. This
result in error pages which are displayed in the browser:
#!/usr/bin/python
import cgi
def main():
print "Content-Type: text/html\n"
try:
import quizpy
print quizpy.main()
except:
print "<html><body><pre>"
cgi.print_exception()
print "</pre></body></html>"
main()
thomas
BTW: The subject of your post is not very good, since it is a cgi problem.
--
Thomas Guettler <guettli at thomas-guettler.de>
http://www.thomas-guettler.de
More information about the Python-list
mailing list