summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/user.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-06-15 00:50:40 -0400
committerBarry Warsaw2007-06-15 00:50:40 -0400
commit067f871fdcaf51a0de8a1468006d3bad2e3a9a24 (patch)
tree8404972f48ad55b4a2353c2f33369fb51351e500 /Mailman/interfaces/user.py
parent125f16ea72934e4dd18529a597b155c0aaca9ff6 (diff)
downloadmailman-067f871fdcaf51a0de8a1468006d3bad2e3a9a24.tar.gz
mailman-067f871fdcaf51a0de8a1468006d3bad2e3a9a24.tar.zst
mailman-067f871fdcaf51a0de8a1468006d3bad2e3a9a24.zip
Diffstat (limited to 'Mailman/interfaces/user.py')
-rw-r--r--Mailman/interfaces/user.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/Mailman/interfaces/user.py b/Mailman/interfaces/user.py
index 9e89c2416..f7647597d 100644
--- a/Mailman/interfaces/user.py
+++ b/Mailman/interfaces/user.py
@@ -30,19 +30,21 @@ class IUser(Interface):
password = Attribute(
"""This user's password information.""")
- preferences = Attribute(
- """The default preferences for this user.""")
-
addresses = Attribute(
"""An iterator over all the IAddresses controlled by this user.""")
- def register(address):
+ def register(address, real_name=None):
"""Register the given email address and link it to this user.
In this case, 'address' is a text email address, not an IAddress
- object. Raises AddressAlreadyLinkedError if this IAddress is already
- linked to another user. If the corresponding IAddress already exists
- but is not linked, then it is simply linked to the user.
+ object. If real_name is not given, the empty string is used.
+
+ Raises AddressAlreadyLinkedError if this IAddress is already linked to
+ another user. If the corresponding IAddress already exists but is not
+ linked, then it is simply linked to the user, in which case
+ real_name is ignored.
+
+ Return the new IAddress object.
"""
def link(address):
@@ -66,3 +68,6 @@ class IUser(Interface):
'address' is a text email address. This method returns true if the
user controls the given email address, otherwise false.
"""
+
+ preferences = Attribute(
+ """This user's preferences.""")