summaryrefslogtreecommitdiff
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authorcotton1998-11-23 10:07:19 +0000
committercotton1998-11-23 10:07:19 +0000
commitcebb04b4f23f9915e750d16a71b7fc2d24672173 (patch)
treef95299ff2d090c3b3578542beb65dfead4c86a7a /Mailman/Cgi
parent3571c21b68ed73b24ac344f0600246dedd98e61a (diff)
downloadmailman-cebb04b4f23f9915e750d16a71b7fc2d24672173.tar.gz
mailman-cebb04b4f23f9915e750d16a71b7fc2d24672173.tar.zst
mailman-cebb04b4f23f9915e750d16a71b7fc2d24672173.zip
This is a simple change that limits the extremely expensive
calculation of html user lists to the roster cgi program. HTMLFormatter: added a .GetAllReplacements() method that does the same thing as GetStandardRepplacements() but also calculates all the html for users lists. Removed the calculation of all the html for the user lists from GetStandardReplacements(). Cgi/roster.py replaced call of GetStandardReplacements() with GetAllReplacements(). scott
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r--Mailman/Cgi/roster.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py
index fc408c47c..28ca8e059 100644
--- a/Mailman/Cgi/roster.py
+++ b/Mailman/Cgi/roster.py
@@ -74,8 +74,7 @@ def main():
print doc.Format()
sys.exit(0)
- replacements = list.GetStandardReplacements()
-
+ replacements = list.GetAllReplacements()
doc.AddItem(list.ParseTags('roster.html', replacements))
print doc.Format()
@@ -109,3 +108,10 @@ def error_page_doc(errmsg, *args):
doc.AddItem(htmlformat.Header(2, "Error"))
doc.AddItem(htmlformat.Bold(errmsg % args))
return doc
+
+
+
+
+
+
+