summaryrefslogtreecommitdiff
path: root/src/mailman/app/membership.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-03-16 15:14:48 -0400
committerBarry Warsaw2011-03-16 15:14:48 -0400
commite2e7e4a3e43a1a7fcf9f909f0d0aaaeedf27f3fa (patch)
treed1fc27c3f95826c88edad4ae18b482b5d13377d2 /src/mailman/app/membership.py
parent8f51ea23f187707f92e4ed689ef5ccb0fe292427 (diff)
downloadmailman-e2e7e4a3e43a1a7fcf9f909f0d0aaaeedf27f3fa.tar.gz
mailman-e2e7e4a3e43a1a7fcf9f909f0d0aaaeedf27f3fa.tar.zst
mailman-e2e7e4a3e43a1a7fcf9f909f0d0aaaeedf27f3fa.zip
Utils.maketext() and Utils.findtext() are gone.
Diffstat (limited to 'src/mailman/app/membership.py')
-rw-r--r--src/mailman/app/membership.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/app/membership.py b/src/mailman/app/membership.py
index 8723fd781..fcbedc2f5 100644
--- a/src/mailman/app/membership.py
+++ b/src/mailman/app/membership.py
@@ -29,7 +29,6 @@ __all__ = [
from email.utils import formataddr
from zope.component import getUtility
-from mailman import Utils
from mailman.app.notifications import send_goodbye_message
from mailman.core.i18n import _
from mailman.email.message import OwnerNotification
@@ -39,6 +38,7 @@ from mailman.interfaces.member import (
AlreadySubscribedError, MemberRole, MembershipIsBannedError,
NotAMemberError)
from mailman.interfaces.usermanager import IUserManager
+from mailman.utilities.i18n import make
@@ -149,10 +149,10 @@ def delete_member(mlist, address, admin_notif=None, userack=None):
user = getUtility(IUserManager).get_user(address)
realname = user.real_name
subject = _('$mlist.real_name unsubscription notification')
- text = Utils.maketext(
- 'adminunsubscribeack.txt',
- {'listname': mlist.real_name,
- 'member' : formataddr((realname, address)),
- }, mlist=mlist)
+ text = make('adminunsubscribeack.txt',
+ mailing_list=mlist,
+ listname=mlist.real_name,
+ member=formataddr((realname, address)),
+ )
msg = OwnerNotification(mlist, subject, text)
msg.send(mlist)