~sumanah/mailman/mailman

« back to all changes in this revision

Viewing changes to src/mailman/app/membership.py

  • Committer: Sumana Harihareswara
  • Date: 2015-01-08 21:35:58 UTC
  • mfrom: (7273.2.15 3.0)
  • Revision ID: sumanah@panix.com-20150108213558-65ym6553zj256z8p
mergeĀ fromĀ master

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2014 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 2007-2015 by the Free Software Foundation, Inc.
2
2
#
3
3
# This file is part of GNU Mailman.
4
4
#
17
17
 
18
18
"""Application support for membership management."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'add_member',
25
22
    'delete_member',
28
25
 
29
26
 
30
27
from email.utils import formataddr
31
 
from zope.component import getUtility
32
 
 
33
28
from mailman.app.notifications import (
34
29
    send_goodbye_message, send_welcome_message)
35
30
from mailman.config import config
40
35
    MemberRole, MembershipIsBannedError, NotAMemberError, SubscriptionEvent)
41
36
from mailman.interfaces.usermanager import IUserManager
42
37
from mailman.utilities.i18n import make
 
38
from zope.component import getUtility
43
39
 
44
40
 
45
41