Eeeeppp! Editing options via web dosen't work!!

It seems that entering one's email address to edit subscription
options dosent work (It was prolly broken by the cgi 'driver' setup)
Here's a patch to subscribe.py that seems to fix it.
-The Dragon De Monsyne
*** /usr/src/mailman-1.0b5/Mailman/Cgi/subscribe.py Mon Jul 27 17:48:31 1998 --- Mailman/Cgi/subscribe.py Mon Aug 31 07:22:17 1998
*** 61,69 **** 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)
#######
--- 61,81 ---- def call_script(which, pathinfo): "A little bit of a hack to call one of the scripts..." os.environ['PATH_INFO'] = string.join(pathinfo, '/') ! ! # See the reference manual for why we have to do things this way. ! # Note that importing should have no side-effects! ! pkg = __import__('Mailman.Cgi', globals(), locals(), [which]) ! module = getattr(pkg, which) ! main = getattr(module, 'main') ! try: ! main() ! except SystemExit: ! # this is a valid way for the function to exit ! pass ! ! #file = os.path.join(mm_cfg.SCRIPTS_DIR, which) ! #list.Unlock() ! #execfile(file) sys.exit(0)
#######
*** 92,97 **** --- 104,110 ---- print doc.Format() list.Unlock() sys.exit(0)
list.Unlock() call_script('options', [list._internal_name, member]) if not form.has_key("email"): error = 1
participants (1)
-
The Dragon De Monsyne