summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
authorbwarsaw2001-10-01 21:59:43 +0000
committerbwarsaw2001-10-01 21:59:43 +0000
commit2d2a2a4b03b2b476c7f40a978a944a0d3a6a73f3 (patch)
treec187cdd8b3d5543b5bde2c2b82b2b0a7b8adf592 /Mailman/HTMLFormatter.py
parentfbfaaabd2e18cb719caa730ff99b3e2aa129c450 (diff)
downloadmailman-2d2a2a4b03b2b476c7f40a978a944a0d3a6a73f3.tar.gz
mailman-2d2a2a4b03b2b476c7f40a978a944a0d3a6a73f3.tar.zst
mailman-2d2a2a4b03b2b476c7f40a978a944a0d3a6a73f3.zip
Diffstat (limited to 'Mailman/HTMLFormatter.py')
-rw-r--r--Mailman/HTMLFormatter.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index cb55a2a59..7c588f158 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -73,32 +73,30 @@ class HTMLFormatter:
if not self.getMemberOption(m, conceal_sub):
people.append(m)
num_concealed = len(members) - len(people)
- people.sort()
- if (num_concealed > 0):
- plu = (((num_concealed > 1) and "s") or "")
- concealed = _(
- "<em>(%(num_concealed)d private member%(plu)s not shown)</em>")
+ if num_concealed == 1:
+ concealed = _('<em>(1 private member not shown)</em>')
+ elif num_concealed > 1:
+ concealed = _(
+ '<em>(%(num_concealed)d private members not shown)</em>')
else:
- concealed = ""
- ObscureEmail = Utils.ObscureEmail
+ concealed = ''
disdel = mm_cfg.DisableDelivery
items = []
+ people.sort()
for person in people:
- id = ObscureEmail(person)
+ id = Utils.ObscureEmail(person)
url = self.GetOptionsURL(person)
if self.obscure_addresses:
- showing = ObscureEmail(person, for_text=1)
+ showing = Utils.ObscureEmail(person, for_text=1)
else:
showing = person
got = Link(url, showing)
if self.getMemberOption(person, disdel):
- got = Italic("(", got, ")")
+ got = Italic('(', got, ')')
items.append(got)
# Just return the .Format() so this works until I finish
# converting everything to htmlformat...
- return (concealed +
- apply(UnorderedList, tuple(items)).Format())
-
+ return concealed + UnorderedList(*tuple(items)).Format()
def FormatOptionButton(self, type, value, user):
users_val = self.getMemberOption(user, type)