Tried to do the "Edit Options" section, and edit my personal user settings on a test list, and I got this output:
(http://area51.mrbill.net/mailman/subscribe/test)
We're sorry, we hit a bug! If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! Traceback:
Traceback (innermost last): File "/usr/local/mailman/scripts/driver", line 97, in run_main main() File "../Mailman/Cgi/subscribe.py", line 95, in main call_script('options', [list._internal_name, member]) File "../Mailman/Cgi/subscribe.py", line 65, in call_script list.Unlock() AttributeError: Unlock
Environment variables: Variable Value DOCUMENT_ROOT /usr/local/apache/share/htdocs CONTENT_LENGTH 49 CONTENT_TYPE application/x-www-form-urlencoded PATH_TRANSLATED /usr/local/apache/share/htdocs/test/ REMOTE_ADDR 198.214.63.63 SERVER_SOFTWARE Apache/1.3.1 (Unix) GATEWAY_INTERFACE CGI/1.1 HTTP_ACCEPT_LANGUAGE en REMOTE_PORT 17021 SERVER_PORT 80 HTTP_CONNECTION Keep-Alive HTTP_USER_AGENT Mozilla/4.05 [en] (X11; I; Linux 2.0.33 i586) HTTP_ACCEPT_CHARSET iso-8859-1,*,utf-8 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* REQUEST_URI /mailman/subscribe/test/ PATH /usr/local/bin:/bin:/sbin:/usr/sbin:/usr/bin QUERY_STRING SERVER_PROTOCOL HTTP/1.0 PATH_INFO test/mrbill@frenzy.com HTTP_HOST area51.mrbill.net REQUEST_METHOD POST SCRIPT_NAME /mailman/subscribe SERVER_ADMIN root@area51.mrbill.net SCRIPT_FILENAME /usr/local/mailman/cgi-bin/subscribe PYTHONPATH /usr/local/mailman HTTP_REFERER http://area51.mrbill.net/mailman/listinfo/test SERVER_NAME area51.mrbill.net
-- Bill Bradford * mrbill@frenzy.com
"One World, One Web, One Program" - Microsoft Promotional Ad "Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler
"WB" == William Bradford <mrbill@frenzy.com> writes:
WB> Tried to do the "Edit Options" section, and edit my personal
WB> user settings on a test list, and I got this output:
WB> (http://area51.mrbill.net/mailman/subscribe/test)
WB> We're sorry, we hit a bug! If you would like to help us
WB> identify the problem, please email a copy of this page to the
WB> webmaster for this site with a description of what
WB> happened. Thanks! Traceback:
Bill,
I was able to reproduce this problem on a test list. Funny, I'm not sure how this ever worked before! Here's a patch...
-Barry
-------------------- snip snip -------------------- Index: subscribe.py
RCS file: /projects/cvsroot/mailman/Mailman/Cgi/subscribe.py,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** subscribe.py 1998/07/13 21:27:10 1.5 --- subscribe.py 1998/07/31 23:03:13 1.6
*** 58,69 **** error = 0 results = ''
! def call_script(which, pathinfo): "A little bit of a hack to call one of the scripts..." os.environ['PATH_INFO'] = string.join(pathinfo, '/')
file = os.path.join(mm_cfg.SCRIPTS_DIR, which) list.Unlock()
! execfile(file) sys.exit(0)
#######
--- 58,70 ---- error = 0 results = ''
! def call_script(which, pathinfo, list): "A little bit of a hack to call one of the scripts..." os.environ['PATH_INFO'] = string.join(pathinfo, '/') list.Unlock() ! pkg = __import__('Mailman.Cgi', globals(), locals(), [which]) ! mod = getattr(pkg, which) ! mod.main() sys.exit(0)
#######
*** 92,98 **** print doc.Format() list.Unlock() sys.exit(0) ! call_script('options', [list._internal_name, member]) if not form.has_key("email"): error = 1 results = results + "You must supply a valid email address.<br>" --- 93,99 ---- print doc.Format() list.Unlock() sys.exit(0) ! call_script('options', [list._internal_name, member], list) if not form.has_key("email"): error = 1 results = results + "You must supply a valid email address.<br>"
participants (2)
-
Barry A. Warsaw
-
William Bradford