diff options
| author | bwarsaw | 1998-07-31 23:03:13 +0000 |
|---|---|---|
| committer | bwarsaw | 1998-07-31 23:03:13 +0000 |
| commit | 66ffc42478adff2cf8e04e745e4b27c86ae15ab6 (patch) | |
| tree | 597742039c617bf2e1cd08e4d6619d5d91401d29 /Mailman/Cgi/subscribe.py | |
| parent | 4ebe7ba208ba42511ae77ce7e6d2dcb9be87137e (diff) | |
| download | mailman-66ffc42478adff2cf8e04e745e4b27c86ae15ab6.tar.gz mailman-66ffc42478adff2cf8e04e745e4b27c86ae15ab6.tar.zst mailman-66ffc42478adff2cf8e04e745e4b27c86ae15ab6.zip | |
Diffstat (limited to 'Mailman/Cgi/subscribe.py')
| -rw-r--r-- | Mailman/Cgi/subscribe.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 46becf434..e3fb31b1f 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -58,12 +58,13 @@ def main(): error = 0 results = '' - def call_script(which, pathinfo): + 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, '/') - file = os.path.join(mm_cfg.SCRIPTS_DIR, which) list.Unlock() - execfile(file) + pkg = __import__('Mailman.Cgi', globals(), locals(), [which]) + mod = getattr(pkg, which) + mod.main() sys.exit(0) ####### @@ -92,7 +93,7 @@ def main(): print doc.Format() list.Unlock() sys.exit(0) - call_script('options', [list._internal_name, member]) + 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>" |
