On Sat, 22 Mar 2003 22:41:04 -0500, Cory Wright <[EMAIL PROTECTED]> wrote:
> I have never used the WN web server, but a quick look over the docs shows > that it provides a QUERY_STRING variable: > > http://hopf.math.nwu.edu/docs/appendixD.html#cgi.QUERY_STRING Whew! That's a relief. I had flashes of having to make drastic changes for each possible web server and a host of tests to see which one is running. Okay, here's my thinking... When there is no query, Apache passes a blank string to the CGI. I test to see if it is blank. Perhaps WN doesn't do that. Perhaps WN doesn't put any string in the environment when it has no query. To help test my assumption, I'll need you to apply the following patch, Jeff: RCS file: /cvsroot/tmda/tmda/contrib/cgi/tmda-cgi.py,v retrieving revision 1.7 diff -r1.7 tmda-cgi.py 70,72c70,75 < if os.environ["QUERY_STRING"]: < import Release < Release.Release(os.environ["QUERY_STRING"]) --- > try: > if os.environ["QUERY_STRING"]: > import Release > Release.Release(os.environ["QUERY_STRING"]) > except KeyError: > pass This just tells it not to err out if it can't find a QUERY. It should fix the immediate problem, but I don't have any warm fuzzies about the URL confirmation code. Any chance you could apply this, test to see if it generally works, and then try out the URL confirmation feature? That would be a big help as I'm not ready to try installing WN on my server. Thanks, Gre7g. _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
