On Mon, 16 Jun 2003 10:13:14 -0600, Jeff Ross <[EMAIL PROTECTED]>
wrote:
> I upgraded to tmda-0.80 to avoid fix the boundary error problem
> reported with earlier versions.
Boundary error?
> While I was at at, I installed tmda-cgi-0.10, installing as system-wide
> mode (sudo'ed as root), using file based authentication. I am unable
> to log in to tmda-cgi. The error message I'm getting is:
> File "tmda-cgi.py", line 112, in ?
> KeyError: QUERY_STRING
> Did I blow it?
Hrmmm!!! Looks like we introduced a stupid bug that will mess up some
webservers. Try the following patch:
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.py,v
retrieving revision 1.37
diff -u -r1.37 tmda-cgi.py
--- tmda-cgi.py 26 May 2003 20:14:14 -0000 1.37
+++ tmda-cgi.py 16 Jun 2003 17:35:33 -0000
@@ -109,7 +109,7 @@
# First visit to any page?
if not Form.keys():
# Release an e-mail by URL?
- if os.environ["QUERY_STRING"]:
+ if os.environ.has_key("QUERY_STRING") and os.environ["QUERY_STRING"]:
import Release
Release.Release(os.environ["QUERY_STRING"])
sys.exit()
> On an unrelated issue with tmda-cgi...How hard would it be to put a
> readline library in the configure script. A lousy typist like me needs
> 'way too many passes to get the correct information input ;-)
I don't think I follow you.
Depending on how you have your shell configured, you may not be able to
use the backspace key when typing in answers to the questions
./configure asks you. Is that what you mean? If so, try using
ctrl-backspace instead. There is a way to correctly configure your
terminal so backspace works during Python programs, but I can't for the
life of me remember what it is. Does anyone out there remember it?
Gre7g.
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users