diff options
| author | Barry Warsaw | 2007-06-15 01:13:47 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-06-15 01:13:47 -0400 |
| commit | 3cc1d23d115c87cb0d468df95ba2ff4ca9624d18 (patch) | |
| tree | c20749734a7de50ed67cd7b78a409d2a33b2a441 /Mailman/interfaces/user.py | |
| parent | 54316840a07fb9af9cdb0f5017680b63ccc8e986 (diff) | |
| parent | 067f871fdcaf51a0de8a1468006d3bad2e3a9a24 (diff) | |
| download | mailman-3cc1d23d115c87cb0d468df95ba2ff4ca9624d18.tar.gz mailman-3cc1d23d115c87cb0d468df95ba2ff4ca9624d18.tar.zst mailman-3cc1d23d115c87cb0d468df95ba2ff4ca9624d18.zip | |
Diffstat (limited to 'Mailman/interfaces/user.py')
| -rw-r--r-- | Mailman/interfaces/user.py | 19 |
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.""") |
