diff options
author | bwarsaw <> | 2003-12-24 17:27:06 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-12-24 17:27:06 +0000 |
commit | 29ece88fcc1dbc64ec01779b4cf9e401a01d04ec (patch) | |
tree | 94876d1c7679664b9aeef64598a3c6b733ec28d5 /Mailman/Cgi | |
parent | 088b3f7eeeaaf3f0c4240ee42c8b297864f76fc9 (diff) | |
download | mailman2-29ece88fcc1dbc64ec01779b4cf9e401a01d04ec.tar.gz mailman2-29ece88fcc1dbc64ec01779b4cf9e401a01d04ec.tar.xz mailman2-29ece88fcc1dbc64ec01779b4cf9e401a01d04ec.zip |
listinfo_overview(): Richard Barrett's patch # 828811 to reduce
listinfo and admin cgi process size by not keeping the entire mlist
object alive through a reference in the advertised list. Only the
information used in the overview is kept.
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r-- | Mailman/Cgi/listinfo.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index fb9154ae..c1bdb796 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -91,8 +91,9 @@ def listinfo_overview(msg=''): # List is for different identity of this host - skip it. continue else: - advertised.append(mlist) - + advertised.append((mlist.GetScriptURL('listinfo'), + mlist.real_name, + mlist.description)) if msg: greeting = FontAttr(msg, color="ff5060", size="+1") else: @@ -135,10 +136,10 @@ def listinfo_overview(msg=''): Bold(FontAttr(_('Description'), size='+2')) ]) highlight = 1 - for mlist in advertised: + for url, real_name, description in advertised: table.AddRow( - [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), - mlist.description or Italic(_('[no description available]'))]) + [Link(url, Bold(real_name)), + description or Italic(_('[no description available]'))]) if highlight and mm_cfg.WEB_HIGHLIGHT_COLOR: table.AddRowInfo(table.GetCurrentRowIndex(), bgcolor=mm_cfg.WEB_HIGHLIGHT_COLOR) |