diff options
| author | Barry Warsaw | 2013-03-21 09:52:31 -0700 |
|---|---|---|
| committer | Barry Warsaw | 2013-03-21 09:52:31 -0700 |
| commit | 2b9b4feff3845cd1eb6799037d8516510608e1a0 (patch) | |
| tree | 0cb38a04f433595129f0226b3d15a42fd0263185 /src/mailman/rest/lists.py | |
| parent | bc4776ba20441810f2ff22d8436f450d4be2b439 (diff) | |
| parent | c8c7c3e95088db4b6e9e8b7d58094fe2818b622b (diff) | |
| download | mailman-2b9b4feff3845cd1eb6799037d8516510608e1a0.tar.gz mailman-2b9b4feff3845cd1eb6799037d8516510608e1a0.tar.zst mailman-2b9b4feff3845cd1eb6799037d8516510608e1a0.zip | |
Diffstat (limited to 'src/mailman/rest/lists.py')
| -rw-r--r-- | src/mailman/rest/lists.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index cefd91b7c..328472794 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -40,7 +40,7 @@ from mailman.interfaces.member import MemberRole from mailman.interfaces.subscriptions import ISubscriptionService from mailman.rest.configuration import ListConfiguration from mailman.rest.helpers import ( - CollectionMixin, etag, no_content, path_to, restish_matcher) + CollectionMixin, etag, no_content, path_to, restish_matcher, paginate) from mailman.rest.members import AMember, MemberCollection from mailman.rest.moderation import HeldMessages, SubscriptionRequests from mailman.rest.validator import Validator @@ -115,6 +115,7 @@ class _ListBase(resource.Resource, CollectionMixin): self_link=path_to('lists/{0}'.format(mlist.list_id)), ) + @paginate def _get_collection(self, request): """See `CollectionMixin`.""" return list(getUtility(IListManager)) @@ -229,6 +230,7 @@ class MembersOfList(MemberCollection): self._mlist = mailing_list self._role = role + @paginate def _get_collection(self, request): """See `CollectionMixin`.""" # Overrides _MemberBase._get_collection() because we only want to @@ -250,6 +252,7 @@ class ListsForDomain(_ListBase): resource = self._make_collection(request) return http.ok([], etag(resource)) + @paginate def _get_collection(self, request): """See `CollectionMixin`.""" return list(self._domain.mailing_lists) |
