diff options
| author | Barry Warsaw | 2015-07-18 23:29:07 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-07-18 23:29:07 -0400 |
| commit | 5a08c47353cefccaa021e0f488ab76f3806dd49c (patch) | |
| tree | 32fa44f854cf762b156c93ecba1a63be43e454c5 | |
| parent | 759efff6eb63b3ba1fff15193923a3df72eb552c (diff) | |
| download | mailman-5a08c47353cefccaa021e0f488ab76f3806dd49c.tar.gz mailman-5a08c47353cefccaa021e0f488ab76f3806dd49c.tar.zst mailman-5a08c47353cefccaa021e0f488ab76f3806dd49c.zip | |
| -rw-r--r-- | src/mailman/rest/helpers.py | 1 | ||||
| -rw-r--r-- | src/mailman/rest/lists.py | 3 | ||||
| -rw-r--r-- | src/mailman/rest/wsgiapp.py | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index 84aa3663b..0bba86521 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -54,6 +54,7 @@ def path_to(resource, api_version): system base URI. :type resource: string :param api_version: API version to report. + :type api_version: string :return: The full path to the resource. :rtype: bytes """ diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py index 3409a3a00..a17946738 100644 --- a/src/mailman/rest/lists.py +++ b/src/mailman/rest/lists.py @@ -235,8 +235,7 @@ class MembersOfList(MemberCollection): def _get_collection(self, request): """See `CollectionMixin`.""" # Overrides _MemberBase._get_collection() because we only want to - # return the members from the requested roster. Don't call super() - # but be sure to set the request object. + # return the members from the requested roster. roster = self._mlist.get_roster(self._role) address_of_member = attrgetter('address.email') return list(sorted(roster.members, key=address_of_member)) diff --git a/src/mailman/rest/wsgiapp.py b/src/mailman/rest/wsgiapp.py index 035125864..94f654217 100644 --- a/src/mailman/rest/wsgiapp.py +++ b/src/mailman/rest/wsgiapp.py @@ -52,6 +52,7 @@ class AdminWebServiceWSGIRequestHandler(WSGIRequestHandler): class SetAPIVersion: """Falcon middleware object that sets the api_version on resources.""" + def process_resource(self, request, response, resource): # Set this attribute on the resource right before it is dispatched # too. This can be used by the resource to provide different |
