aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2008-02-03 11:27:07 -0800
committerMark Sapiro <msapiro@value.net>2008-02-03 11:27:07 -0800
commit63358ab89da60fe8010554d8ff46d68f45960b18 (patch)
treecb8ef9dbefaa85c86fa7f34b705da13ce96412f5 /Mailman
parenta290d3b063e7a743b9860443c7e5c844d3907f0d (diff)
downloadmailman2-63358ab89da60fe8010554d8ff46d68f45960b18.tar.gz
mailman2-63358ab89da60fe8010554d8ff46d68f45960b18.tar.xz
mailman2-63358ab89da60fe8010554d8ff46d68f45960b18.zip
HTMLFormatter.py - list_hidden didn't work for digest members. Fixed.
Diffstat (limited to '')
-rw-r--r--Mailman/HTMLFormatter.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index 2a316e3a..3a21d961 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -66,17 +66,13 @@ class HTMLFormatter:
conceal_sub = mm_cfg.ConcealSubscription
people = []
if digest:
- digestmembers = self.getDigestMemberKeys()
- for dm in digestmembers:
- if not self.getMemberOption(dm, conceal_sub):
- people.append(dm)
- num_concealed = len(digestmembers) - len(people)
+ members = self.getDigestMemberKeys()
else:
members = self.getRegularMemberKeys()
- for m in members:
- if list_hidden or not self.getMemberOption(m, conceal_sub):
- people.append(m)
- num_concealed = len(members) - len(people)
+ for m in members:
+ if list_hidden or not self.getMemberOption(m, conceal_sub):
+ people.append(m)
+ num_concealed = len(members) - len(people)
if num_concealed == 1:
concealed = _('<em>(1 private member not shown)</em>')
elif num_concealed > 1: