Update of /cvsroot/mailman/mailman/Mailman/Cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv7040
Modified Files:
Tag: Release_2_1-maint
admin.py
Log Message:
adminy_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.
Index: admin.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Cgi/admin.py,v
retrieving revision 2.86.2.5
retrieving revision 2.86.2.6
diff -u -d -r2.86.2.5 -r2.86.2.6
--- admin.py 1 Dec 2003 01:18:51 -0000 2.86.2.5
+++ admin.py 24 Dec 2003 17:27:45 -0000 2.86.2.6
@@ -238,8 +238,9 @@
# List is for different identity of this host - skip it.
continue
else:
- advertised.append(mlist)
-
+ advertised.append((mlist.GetScriptURL('admin'),
+ mlist.real_name,
+ mlist.description))
# Greeting depends on whether there was an error or not
if msg:
greeting = FontAttr(msg, color="ff5060", size="+1")
@@ -289,10 +290,10 @@
Bold(FontAttr(_('Description'), size='+2'))
])
highlight = 1
- for mlist in advertised:
+ for url, real_name, description in advertised:
table.AddRow(
- [Link(mlist.GetScriptURL('admin'), 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)
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org