------------------------------------------------------------
revno: 1677
fixes bug: https://launchpad.net/bugs/1604544
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Thu 2016-09-29 12:10:08 -0700
message:
Fix unicode links in multi-page admin Membership list search results.
modified:
Mailman/Cgi/admin.py
NEWS
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Cgi/admin.py'
--- Mailman/Cgi/admin.py 2016-08-19 08:12:30 +0000
+++ Mailman/Cgi/admin.py 2016-09-29 19:10:08 +0000
@@ -1188,8 +1188,11 @@
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>')
=== modified file 'NEWS'
--- NEWS 2016-09-15 21:43:33 +0000
+++ NEWS 2016-09-29 19:10:08 +0000
@@ -21,6 +21,9 @@
Bug fixes and other patches
+ - The 2.1.23 fix for LP: #1604544 only fixed the letter links at the top
+ of the Membership List. The links at the bottom have now been fixed.
+
- paths.py now adds dist-packages as well as site-packages to sys.path.
(LP: #1621172)
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org