summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/interfaces')
-rw-r--r--src/mailman/interfaces/mailinglist.py4
-rw-r--r--src/mailman/interfaces/member.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/src/mailman/interfaces/mailinglist.py b/src/mailman/interfaces/mailinglist.py
index 9ae779409..c08e257c1 100644
--- a/src/mailman/interfaces/mailinglist.py
+++ b/src/mailman/interfaces/mailinglist.py
@@ -32,6 +32,8 @@ __all__ = [
from flufl.enum import Enum
from zope.interface import Interface, Attribute
+from mailman.interfaces.member import MemberRole
+
class Personalization(Enum):
@@ -232,7 +234,7 @@ class IMailingList(Interface):
:rtype: Roster
"""
- def subscribe(subscriber, role):
+ def subscribe(subscriber, role=MemberRole.member):
"""Subscribe the given address or user to the mailing list.
:param subscriber: The address or user to subscribe to the mailing
diff --git a/src/mailman/interfaces/member.py b/src/mailman/interfaces/member.py
index 0a8a5cfd5..5073b3059 100644
--- a/src/mailman/interfaces/member.py
+++ b/src/mailman/interfaces/member.py
@@ -184,7 +184,7 @@ class IMember(Interface):
receive_list_copy = Attribute(
"""Should an explicit recipient receive a list copy?
- Unlike going through the preferences, this attribute return the
+ Unlike going through `preferences`, this attribute returns the
preference value based on the following lookup order:
1. The member
@@ -196,7 +196,7 @@ class IMember(Interface):
receive_own_postings = Attribute(
"""Should the poster get a list copy of their own messages?
- Unlike going through the preferences, this attribute return the
+ Unlike going through `preferences`, this attribute returns the
preference value based on the following lookup order:
1. The member
@@ -208,7 +208,7 @@ class IMember(Interface):
delivery_mode = Attribute(
"""The preferred delivery mode.
- Unlike going through the preferences, this attribute return the
+ Unlike going through `preferences`, this attribute returns the
preference value based on the following lookup order:
1. The member
@@ -220,7 +220,7 @@ class IMember(Interface):
delivery_status = Attribute(
"""The delivery status.
- Unlike going through the preferences, this attribute return the
+ Unlike going through `preferences`, this attribute returns the
preference value based on the following lookup order:
1. The member