On Monday, Jun 16, 2003, at 11:49 US/Mountain, Gre7g Luterman wrote:
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()
Fixed, thank you! I am using the WN webserver.
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.
Maybe I'm too used to "modern" shells ;-)
I'd like to see all of the stuff we associate with modern shells available to ./configure:
tab completion
backspace (deleting the character to the left of the cursor)
all of the <ctrl> cursor controls (ctrl-a to the beginning of the line, ctrl-e to the end of the line, and so on)
arrow keys (moving the cursor left or right in the line without deleting)
If I understand it correctly, the typical shell uses the readline library to accomplish this. Bash does, Korn (my favorite OpenBSD shell) must as well. Python must have an equivalent.
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?
Crtl-backspace doesn't work here. I'm using a version of the Korn shell, but I think bash would be the same, since if I understand it correctly, both use the same readline library.
Gre7g. _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
Thanks for the patch, Greg! -- Jeff Ross Open Vistas Networking, Inc. http://www.openvistas.net
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
