summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2011-09-23 15:31:49 -0400
committerBarry Warsaw2011-09-23 15:31:49 -0400
commit416db276612ac6338524ce350e3b87216ffaffb7 (patch)
treeb29605f97447d5a4daf32f392b9c8f9d41981bd2 /src/mailman/interfaces
parente4b34fefabd2ae3f14db83e96076fe741aa7c5b8 (diff)
downloadmailman-416db276612ac6338524ce350e3b87216ffaffb7.tar.gz
mailman-416db276612ac6338524ce350e3b87216ffaffb7.tar.zst
mailman-416db276612ac6338524ce350e3b87216ffaffb7.zip
* Preferences for addresses, users, and members can be accessed, changed, and
deleted through the REST interface. Hierarchical, combined preferences for members, and system preferences can be read through the REST interface. (LP: #821438)
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