diff options
| author | mailman | 1998-04-10 18:33:14 +0000 |
|---|---|---|
| committer | mailman | 1998-04-10 18:33:14 +0000 |
| commit | 4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e (patch) | |
| tree | 775e2daa2af39aa85a653a21bebec76741ea172d | |
| parent | 2b005f5af007aeaa31dc34372e8d616ed3dfd3f7 (diff) | |
| download | mailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.tar.gz mailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.tar.zst mailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.zip | |
FormatListinfoOverview(): Sort the presented lists.
| -rwxr-xr-x | cgi/admin | 8 | ||||
| -rwxr-xr-x | cgi/listinfo | 8 |
2 files changed, 10 insertions, 6 deletions
@@ -5,7 +5,7 @@ To run stand-alone for debugging, set env var PATH_INFO to name of list and, optionally, options category.""" -__version__ = "$Revision: 411 $" +__version__ = "$Revision: 412 $" import sys sys.path.append('/home/mailman/mailman/modules') @@ -119,7 +119,7 @@ def main(): def FormatAdminOverview(error=None): "Present a general welcome and itemize the (public) lists." doc = Document() - legend = "%s Maillists - Admin Links" % mm_cfg.DEFAULT_HOST_NAME + legend = "%s maillists - Admin Links" % mm_cfg.DEFAULT_HOST_NAME doc.SetTitle(legend) table = Table(border=0, width="100%") @@ -133,7 +133,9 @@ def FormatAdminOverview(error=None): colspan=2) advertised = [] - for n in mm_utils.list_names(): + names = mm_utils.list_names() + names.sort() + for n in names: l = maillist.MailList(n) l.Unlock() if l.advertised: advertised.append(l) diff --git a/cgi/listinfo b/cgi/listinfo index a6b15880b..8d12484e8 100755 --- a/cgi/listinfo +++ b/cgi/listinfo @@ -4,7 +4,7 @@ Errors are redirected to logs/errors.""" -__version__ = "$Revision: 410 $" +__version__ = "$Revision: 412 $" # No lock needed in this script, because we don't change data. @@ -49,7 +49,7 @@ def main(): def FormatListinfoOverview(error=None): "Present a general welcome and itemize the (public) lists." doc = Document() - legend = "%s Maillists" % mm_cfg.DEFAULT_HOST_NAME + legend = "%s maillists" % mm_cfg.DEFAULT_HOST_NAME doc.SetTitle(legend) table = Table(border=0, width="100%") @@ -63,7 +63,9 @@ def FormatListinfoOverview(error=None): colspan=2) advertised = [] - for n in mm_utils.list_names(): + names = mm_utils.list_names() + names.sort() + for n in names: l = maillist.MailList(n) l.Unlock() if l.advertised: advertised.append(l) |
