summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/member.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-27 13:21:28 -0500
committerBarry Warsaw2009-12-27 13:21:28 -0500
commit16bf4d15972351c3f8dacc7f28c4cdb24a717e59 (patch)
treee6abad3ad407260b85156b828441e37b0374d7a5 /src/mailman/interfaces/member.py
parent7592ba511e37a299e3329f95e584873f3613dc5f (diff)
downloadmailman-16bf4d15972351c3f8dacc7f28c4cdb24a717e59.tar.gz
mailman-16bf4d15972351c3f8dacc7f28c4cdb24a717e59.tar.zst
mailman-16bf4d15972351c3f8dacc7f28c4cdb24a717e59.zip
Add REST API for subscription services.
Diffstat (limited to 'src/mailman/interfaces/member.py')
-rw-r--r--src/mailman/interfaces/member.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/interfaces/member.py b/src/mailman/interfaces/member.py
index 2e966879d..e5a82060a 100644
--- a/src/mailman/interfaces/member.py
+++ b/src/mailman/interfaces/member.py
@@ -29,6 +29,8 @@ __all__ = [
]
+from lazr.restful.declarations import (
+ export_as_webservice_entry, exported)
from munepy import Enum
from zope.interface import Interface, Attribute
@@ -87,6 +89,8 @@ class AlreadySubscribedError(SubscriptionError):
class IMember(Interface):
"""A member of a mailing list."""
+ export_as_webservice_entry()
+
mailing_list = Attribute(
"""The mailing list subscribed to.""")