aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/admin.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-09-30 06:11:42 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-09-30 06:11:42 +0900
commiteda2cc91d4e0332df8ee2ecae8aa9fdbc7e68809 (patch)
treec176ebc26d99e34b314610f3fec89b776dc9beb0 /Mailman/Cgi/admin.py
parent1dac81b59ef0e6eeff85ec8665a2be2dbab38d44 (diff)
parentf436fcb0c2e73fcc0e52b609f8464999759ac261 (diff)
downloadmailman2-eda2cc91d4e0332df8ee2ecae8aa9fdbc7e68809.tar.gz
mailman2-eda2cc91d4e0332df8ee2ecae8aa9fdbc7e68809.tar.xz
mailman2-eda2cc91d4e0332df8ee2ecae8aa9fdbc7e68809.zip
Merge lp:mailman/2.1 rev 1677
Diffstat (limited to 'Mailman/Cgi/admin.py')
-rw-r--r--Mailman/Cgi/admin.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py
index 41dc5cf1..843f6e08 100644
--- a/Mailman/Cgi/admin.py
+++ b/Mailman/Cgi/admin.py
@@ -1188,8 +1188,11 @@ def membership_options(mlist, subcat, cgidata, doc, form):
continue
start = chunkmembers[i*chunksz]
end = chunkmembers[min((i+1)*chunksz, last)-1]
- link = Link(url + 'chunk=%d' % i + findfrag,
- _('from %(start)s to %(end)s'))
+ url = url + 'chunk=%d' % i + findfrag
+ if isinstance(url, unicode):
+ url = url.encode(Utils.GetCharSet(mlist.preferred_language),
+ errors='ignore')
+ link = Link(url, _('from %(start)s to %(end)s'))
buttons.append(link)
buttons = UnorderedList(*buttons)
container.AddItem(footer + buttons.Format() + '<p>')