diff options
| author | Barry Warsaw | 2012-12-15 15:44:05 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-12-15 15:44:05 -0500 |
| commit | 0128cd2b2ec3da45dd7636b8843cb4bd3e1fff73 (patch) | |
| tree | eeeb29a46dc70a0fad946e6a6a7e8821104014bc /src/mailman/rest/lists.py | |
| parent | a3c1fad102fc1fc454ddfa2bd66068b9aab636fe (diff) | |
| download | mailman-0128cd2b2ec3da45dd7636b8843cb4bd3e1fff73.tar.gz mailman-0128cd2b2ec3da45dd7636b8843cb4bd3e1fff73.tar.zst mailman-0128cd2b2ec3da45dd7636b8843cb4bd3e1fff73.zip | |
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index 4e9de6905..4a4b243b3 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -42,7 +42,7 @@ from mailman.rest.configuration import ListConfiguration from mailman.rest.helpers import ( CollectionMixin, etag, no_content, path_to, restish_matcher) from mailman.rest.members import AMember, MemberCollection -from mailman.rest.moderation import HeldMessages +from mailman.rest.moderation import HeldMessages, SubscriptionRequests from mailman.rest.validator import Validator @@ -176,11 +176,18 @@ class AList(_ListBase): @resource.child() def held(self, request, segments): - """Return a list of held messages for the mailign list.""" + """Return a list of held messages for the mailing list.""" if self._mlist is None: return http.not_found() return HeldMessages(self._mlist) + @resource.child() + def requests(self, request, segments): + """Return a list of subscription/unsubscription requests.""" + if self._mlist is None: + return http.not_found() + return SubscriptionRequests(self._mlist) + class AllLists(_ListBase): |
