------------------------------------------------------------ revno: 1156 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Fri 2011-04-15 10:54:09 -0700 message: Refactor last change for i18n. modified: Mailman/Cgi/admin.py
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Cgi/admin.py' --- Mailman/Cgi/admin.py 2011-04-14 23:23:39 +0000 +++ Mailman/Cgi/admin.py 2011-04-15 17:54:09 +0000 @@ -184,18 +184,20 @@ non-digest delivery or your mailing list will basically be unusable.'''), tag=_('Warning: ')) - if not mlist.digestable and mlist.getDigestMemberKeys(): + dm = mlist.getDigestMemberKeys() + if not mlist.digestable and dm: doc.addError( _('''You have digest members, but digests are turned off. Those people will not receive mail. - Affected member(s) %r.''' % mlist.getDigestMemberKeys()), + Affected member(s) %(dm)r.'''), tag=_('Warning: ')) - if not mlist.nondigestable and mlist.getRegularMemberKeys(): + rm = mlist.getRegularMemberKeys() + if not mlist.nondigestable and rm: doc.addError( _('''You have regular list members but non-digestified mail is turned off. They will receive non-digestified mail until you - fix this problem. Affected member(s) %r.''' % - mlist.getRegularMemberKeys()), tag=_('Warning: ')) + fix this problem. Affected member(s) %(rm)r.'''), + tag=_('Warning: ')) # Glom up the results page and print it out show_results(mlist, doc, category, subcat, cgidata) print doc.Format()
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org