summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/user.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-15 15:48:41 -0700
committerBarry Warsaw2012-03-15 15:48:41 -0700
commitac0f1c3916e797f3a2261e9a2631e496fb90a8f1 (patch)
tree441a8e2b32de59f466a837f072120c36c92f60d4 /src/mailman/interfaces/user.py
parent0589c867988dc70cbe83a53bc9d1e2bbf3108b82 (diff)
downloadmailman-ac0f1c3916e797f3a2261e9a2631e496fb90a8f1.tar.gz
mailman-ac0f1c3916e797f3a2261e9a2631e496fb90a8f1.tar.zst
mailman-ac0f1c3916e797f3a2261e9a2631e496fb90a8f1.zip
Diffstat (limited to 'src/mailman/interfaces/user.py')
-rw-r--r--src/mailman/interfaces/user.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mailman/interfaces/user.py b/src/mailman/interfaces/user.py
index ad1ac9282..aba9bcbba 100644
--- a/src/mailman/interfaces/user.py
+++ b/src/mailman/interfaces/user.py
@@ -47,8 +47,8 @@ class UnverifiedAddressError(MailmanError):
class IUser(Interface):
"""A basic user."""
- real_name = Attribute(
- """This user's real name.""")
+ display_name = Attribute(
+ """This user's display name.""")
password = Attribute(
"""This user's password information.""")
@@ -68,17 +68,17 @@ class IUser(Interface):
memberships = Attribute(
"""A roster of this user's memberships.""")
- def register(email, real_name=None):
+ def register(email, display_name=None):
"""Register the given email address and link it to this user.
:param email: The text email address to register.
:type email: str
- :param real_name: The user's real name. If not given the empty string
- is used.
- :type real_name: str
+ :param display_name: The user's display name. If not given the empty
+ string is used.
+ :type display_name: str
:return: The address object linked to the user. If the associated
address object already existed (unlinked to a user) then the
- `real_name` parameter is ignored.
+ `display_name` parameter is ignored.
:rtype: `IAddress`
:raises AddressAlreadyLinkedError: if this `IAddress` is already
linked to another user.