diff options
| author | bwarsaw | 2001-02-16 06:31:49 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-02-16 06:31:49 +0000 |
| commit | ef4b128a9f15f23a18573a504c41fa1fdc72d7d0 (patch) | |
| tree | 69621592e67aa97680878a6d47d8b32caa6b9d1a | |
| parent | 61dbc85f8810575f62b20155bec06d29191fce22 (diff) | |
| download | mailman-ef4b128a9f15f23a18573a504c41fa1fdc72d7d0.tar.gz mailman-ef4b128a9f15f23a18573a504c41fa1fdc72d7d0.tar.zst mailman-ef4b128a9f15f23a18573a504c41fa1fdc72d7d0.zip | |
| -rw-r--r-- | Mailman/Cgi/listinfo.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index 5462fbf92..3ceebc6af 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,7 +20,6 @@ # No lock needed in this script, because we don't change data. import os -import string import cgi from Mailman import mm_cfg @@ -38,7 +37,7 @@ def main(): FormatListinfoOverview() return - listname = string.lower(parts[0]) + listname = parts[0].lower() try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: @@ -68,9 +67,9 @@ def FormatListinfoOverview(error=None): if port and http_host[-len(port)-1:] == ':'+port: http_host = http_host[:-len(port)-1] if mm_cfg.VIRTUAL_HOST_OVERVIEW and http_host: - host_name = http_host + hostname = http_host else: - host_name = mm_cfg.DEFAULT_HOST_NAME + hostname = mm_cfg.DEFAULT_HOST_NAME doc = Document() legend = _("%(hostname)s Mailing Lists") @@ -90,8 +89,8 @@ def FormatListinfoOverview(error=None): if mlist.advertised: if mm_cfg.VIRTUAL_HOST_OVERVIEW and \ http_host and \ - string.find(http_host, mlist.web_page_url) == -1 and \ - string.find(mlist.web_page_url, http_host) == -1: + http_host.find(mlist.web_page_url) == -1 and \ + mlist.web_page_url.find(http_host) == -1: # List is for different identity of this host - skip it. continue else: @@ -112,11 +111,11 @@ def FormatListinfoOverview(error=None): ("<p>" + _(" There currently are no publicly-advertised "), Link(mm_cfg.MAILMAN_URL, "mailman"), - _(" mailing lists on %(host_name)s."))) + _(" mailing lists on %(hostname)s."))) else: welcomeitems.append( _('''<p>Below is a listing of all the public mailing lists on - %(host_name)s. Click on a list name to get more information about + %(hostname)s. Click on a list name to get more information about the list, or to subscribe, unsubscribe, and change the preferences on your subscription.''')) |
