diff options
| author | bwarsaw | 1999-11-11 20:29:16 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-11 20:29:16 +0000 |
| commit | 9271c3c469dac7290ad33609fffcd6811ba4fbab (patch) | |
| tree | aed5da71e2f1cc123e5d7dd86ab2c11fa94ae475 | |
| parent | 6d51ae35085642c60d0f24fe54942257bc92e487 (diff) | |
| download | mailman-9271c3c469dac7290ad33609fffcd6811ba4fbab.tar.gz mailman-9271c3c469dac7290ad33609fffcd6811ba4fbab.tar.zst mailman-9271c3c469dac7290ad33609fffcd6811ba4fbab.zip | |
| -rw-r--r-- | Mailman/Cgi/admindb.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 819466d17..cacef2872 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -18,8 +18,11 @@ """Produce and process the pending-approval items for a list.""" -import sys -import os, cgi, string, types +import os +import string +import types +import cgi + from Mailman import Utils, MailList, Errors from Mailman.htmlformat import * from Mailman import mm_cfg @@ -37,7 +40,6 @@ def handle_no_list(doc, extra=''): link = link + 'admin' doc.AddItem(Link(link, 'list of available mailing lists.')) print doc.Format(bgcolor="#ffffff") - sys.exit(0) @@ -48,17 +50,20 @@ def main(): path = os.environ['PATH_INFO'] except KeyError: handle_no_list(doc) + return # get URL components. the list name should be the zeroth part parts = Utils.GetPathPieces(path) try: listname = string.lower(parts[0]) except IndexError: handle_no_list(doc) + return # now that we have the list name, create the list object try: mlist = MailList.MailList(listname) except (Errors.MMUnknownListError, Errors.MMListNotReady): handle_no_list(doc, 'No such list: <tt>%s</tt><p>' % listname) + return # # now we must authorize the user to view this page, and if they are, to # handle both the printing of the current outstanding requests, and the @@ -113,7 +118,6 @@ def main(): PrintRequests(mlist, doc, form) text = doc.Format(bgcolor="#ffffff") print text - sys.stdout.flush() finally: mlist.Save() mlist.Unlock() |
