diff options
author | Mark Sapiro <msapiro@value.net> | 2008-02-03 11:27:07 -0800 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2008-02-03 11:27:07 -0800 |
commit | 63358ab89da60fe8010554d8ff46d68f45960b18 (patch) | |
tree | cb8ef9dbefaa85c86fa7f34b705da13ce96412f5 /Mailman | |
parent | a290d3b063e7a743b9860443c7e5c844d3907f0d (diff) | |
download | mailman2-63358ab89da60fe8010554d8ff46d68f45960b18.tar.gz mailman2-63358ab89da60fe8010554d8ff46d68f45960b18.tar.xz mailman2-63358ab89da60fe8010554d8ff46d68f45960b18.zip |
HTMLFormatter.py - list_hidden didn't work for digest members. Fixed.
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/HTMLFormatter.py | 16 |
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: |