summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/member.py
diff options
context:
space:
mode:
authorAbhilash Raj2015-04-15 22:49:58 -0400
committerAbhilash Raj2015-04-15 22:49:58 -0400
commit342b878edae5f19c8db195abce684d8a20ef2c37 (patch)
tree91361d6f68317cc8b4e2a47ae07cbca904764a9a /src/mailman/interfaces/member.py
parentbc515c8ce1dd7e0f2221f5ae5f572d2e42d9fe18 (diff)
parent2f2e4aa6684a0930395d56a77078aa39ee7786a5 (diff)
downloadmailman-342b878edae5f19c8db195abce684d8a20ef2c37.tar.gz
mailman-342b878edae5f19c8db195abce684d8a20ef2c37.tar.zst
mailman-342b878edae5f19c8db195abce684d8a20ef2c37.zip
merge trunk
Diffstat (limited to 'src/mailman/interfaces/member.py')
-rw-r--r--src/mailman/interfaces/member.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mailman/interfaces/member.py b/src/mailman/interfaces/member.py
index c06cc95b1..d863e1ef1 100644
--- a/src/mailman/interfaces/member.py
+++ b/src/mailman/interfaces/member.py
@@ -123,7 +123,7 @@ class MembershipIsBannedError(MembershipError):
"""The address is not allowed to subscribe to the mailing list."""
def __init__(self, mlist, address):
- super(MembershipIsBannedError, self).__init__()
+ super().__init__()
self._mlist = mlist
self._address = address
@@ -175,6 +175,14 @@ class IMember(Interface):
user = Attribute(
"""The user associated with this member.""")
+ subscriber = Attribute(
+ """The object representing how this member is subscribed.
+
+ This will be an ``IAddress`` if the user is subscribed via an explicit
+ address, otherwise if the the user is subscribed via their preferred
+ address, it will be an ``IUser``.
+ """)
+
preferences = Attribute(
"""This member's preferences.""")