------------------------------------------------------------ revno: 1775 fixes bug: https://launchpad.net/bugs/1777222 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Sat 2018-06-16 09:39:45 -0700 message: Preserve translation accross a call to SendSubscribeAck(). modified: Mailman/MailList.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/MailList.py' --- Mailman/MailList.py 2018-06-12 13:55:49 +0000 +++ Mailman/MailList.py 2018-06-16 16:39:45 +0000 @@ -1058,8 +1058,14 @@ syslog('subscribe', '%s: new%s %s, %s', self.internal_name(), kind, formataddr((name, email)), whence) if ack: - self.SendSubscribeAck(email, self.getMemberPassword(email), - digest, text) + lang = self.preferred_language + otrans = i18n.get_translation() + i18n.set_language(lang) + try: + self.SendSubscribeAck(email, self.getMemberPassword(email), + digest, text) + finally: + i18n.set_translation(otrans) if admin_notif: lang = self.preferred_language otrans = i18n.get_translation() === modified file 'NEWS' --- NEWS 2018-06-14 17:13:26 +0000 +++ NEWS 2018-06-16 16:39:45 +0000 @@ -85,7 +85,10 @@ required. (LP: #1769374) - Quoting in the mailman-config command has been changed from double to - single quotes to allow double-quoted parameters. (LP:1774986) + single quotes to allow double-quoted parameters. (LP: #1774986) + + - Approving a held subscription for a user with a 'different' preferred + language no longer corrupts the results page. (LP: #1777222) Miscellaneous @@ -162,7 +165,7 @@ i18n - The Russian translation has been updated by Sergey Matveev. - (LP:#1708016) + (LP: #1708016) Bug fixes and other patches @@ -235,7 +238,7 @@ Bug fixes and other patches - The list-owner@virtual.domain addresses are now added to virtual-mailman - as they are exposed in 'list created' emails. (LP: 1694384) + as they are exposed in 'list created' emails. (LP: #1694384) - The 'list run by' addresses in web page footers are now just the list-owner address. (LP: #1694384) @@ -810,7 +813,7 @@ - Fixed a bug in bin/rmlist that would throw an exception or just fail to remove held message files for a list with regexp special characters in - its name. (LP:#1414864) + its name. (LP: #1414864) - When applying DMARC mitigations, CookHeaders now adds the original From: to Cc: rather than Reply-To: in some cases to make MUA 'reply' and @@ -959,10 +962,10 @@ names that look like email addresses. (LP: #1304511) - Added the list name to the vette log "held message approved" entry. - (LP: 1295875) + (LP: #1295875) - Added the CGI module name to various "No such list" error log entries. - (LP: 1295875) + (LP: #1295875) - Modified contrib/mmdsr to report module name if present in "No such list error log entries.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org