summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-03-09 05:23:02 +0000
committerklm1998-03-09 05:23:02 +0000
commit84d4ac0bc37572d9e5ef6a1a0a33225bc31f9e49 (patch)
treeb3dca96030d3f4aad09b7844a4b1da76f5f7d119
parent5486b12ea4b9f3e27b66a5a7f67d9b15b23fa6ed (diff)
downloadmailman-84d4ac0bc37572d9e5ef6a1a0a33225bc31f9e49.tar.gz
mailman-84d4ac0bc37572d9e5ef6a1a0a33225bc31f9e49.tar.zst
mailman-84d4ac0bc37572d9e5ef6a1a0a33225bc31f9e49.zip
-rw-r--r--Mailman/HTMLFormatter.py9
-rw-r--r--modules/mm_html.py9
2 files changed, 16 insertions, 2 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index 79322d9a7..322dbb631 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -44,8 +44,14 @@ class HTMLFormatter:
return 'Sorry, not available over the web.'
if digest:
people = filter(NotHidden, self.digest_members)
+ num_concealed = len(self.digest_members) - len(people)
else:
people = filter(NotHidden, self.members)
+ num_concealed = len(self.digest_members) - len(people)
+ if (num_concealed > 0):
+ concealed = "<br><em>(%d private)</em><br>" % num_concealed
+ else:
+ concealed = ""
def FormatOneUser(person, me=self):
import htmlformat, os
@@ -59,7 +65,8 @@ class HTMLFormatter:
items = map(FormatOneUser, people)
# Just return the .Format() so this works until I finish
# converting everything to htmlformat...
- return apply(htmlformat.UnorderedList, tuple(items)).Format()
+ return (apply(htmlformat.UnorderedList, tuple(items)).Format()
+ + concealed)
def FormatOptionButton(self, type, value, user):
users_val = self.GetUserOption(user, type)
diff --git a/modules/mm_html.py b/modules/mm_html.py
index 79322d9a7..322dbb631 100644
--- a/modules/mm_html.py
+++ b/modules/mm_html.py
@@ -44,8 +44,14 @@ class HTMLFormatter:
return 'Sorry, not available over the web.'
if digest:
people = filter(NotHidden, self.digest_members)
+ num_concealed = len(self.digest_members) - len(people)
else:
people = filter(NotHidden, self.members)
+ num_concealed = len(self.digest_members) - len(people)
+ if (num_concealed > 0):
+ concealed = "<br><em>(%d private)</em><br>" % num_concealed
+ else:
+ concealed = ""
def FormatOneUser(person, me=self):
import htmlformat, os
@@ -59,7 +65,8 @@ class HTMLFormatter:
items = map(FormatOneUser, people)
# Just return the .Format() so this works until I finish
# converting everything to htmlformat...
- return apply(htmlformat.UnorderedList, tuple(items)).Format()
+ return (apply(htmlformat.UnorderedList, tuple(items)).Format()
+ + concealed)
def FormatOptionButton(self, type, value, user):
users_val = self.GetUserOption(user, type)