summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/usermanager.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-03-21 21:32:12 -0400
committerBarry Warsaw2015-03-21 21:32:12 -0400
commit783163c4e7eda6d5983bcca512db645c64dad349 (patch)
treeae0a79ac7d8b80ad4cc5a54f003ea61d3e01f3d0 /src/mailman/interfaces/usermanager.py
parent18b7980823d2f9d5b7b0f50596cc05e8efb845e8 (diff)
downloadmailman-783163c4e7eda6d5983bcca512db645c64dad349.tar.gz
mailman-783163c4e7eda6d5983bcca512db645c64dad349.tar.zst
mailman-783163c4e7eda6d5983bcca512db645c64dad349.zip
Diffstat (limited to 'src/mailman/interfaces/usermanager.py')
-rw-r--r--src/mailman/interfaces/usermanager.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mailman/interfaces/usermanager.py b/src/mailman/interfaces/usermanager.py
index 798d1d127..5f3a324cc 100644
--- a/src/mailman/interfaces/usermanager.py
+++ b/src/mailman/interfaces/usermanager.py
@@ -43,6 +43,22 @@ class IUserManager(Interface):
registered.
"""
+ def make_user(email, display_name=None):
+ """Create a new user linked to an address object.
+
+ If ``email`` is already associated with an existing `IAddress`
+ object, use that, otherwise create a new `IAddress`. If the
+ address object already points to an `IUser` return it. If a new
+ `IUser` is created, link the address to the user.
+
+ :param email: The email address.
+ :type email: str
+ :param display_name: The display name.
+ :type display_name: str
+ :return: the IUser object that exists or was created.
+ :rtype: IUser
+ """
+
def delete_user(user):
"""Delete the given user.