summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-04-10 18:33:14 +0000
committermailman1998-04-10 18:33:14 +0000
commit4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e (patch)
tree775e2daa2af39aa85a653a21bebec76741ea172d
parent2b005f5af007aeaa31dc34372e8d616ed3dfd3f7 (diff)
downloadmailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.tar.gz
mailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.tar.zst
mailman-4be90b18e80f7b7d23c079a1a3f4fe4dd5148d4e.zip
FormatListinfoOverview(): Sort the presented lists.
-rwxr-xr-xcgi/admin8
-rwxr-xr-xcgi/listinfo8
2 files changed, 10 insertions, 6 deletions
diff --git a/cgi/admin b/cgi/admin
index 094a7f2f6..dece7c152 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -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)