From 750bbaa99e4cb546a037576980a96a790dd649ba Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sat, 27 Dec 2003 07:45:26 +0000 Subject: show_pending_subs(): The address in the pending database may be a unicode, but it must be ascii. Coerce to an 8-bit string so the bogus u'' doesn't show up. Closes SF 862906. --- Mailman/Cgi/admindb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index d8092415..ab8c2af0 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -298,7 +298,9 @@ def show_pending_subs(mlist, form): if addr not in mlist.ban_list: radio += '
' + CheckBox('ban-%d' % id, 1).Format() + \ ' ' + _('Permanently ban from this list') - table.AddRow(['%s
%s' % (addr, fullname), + # While the address may be a unicode, it must be ascii + paddr = addr.encode('us-ascii', 'replace') + table.AddRow(['%s
%s' % (paddr, fullname), radio, TextBox('comment-%d' % id, size=40) ]) -- cgit v1.2.3