summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/rest/wsgiapp.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/rest/wsgiapp.py b/src/mailman/rest/wsgiapp.py
index 47ee6a879..15a4cf60a 100644
--- a/src/mailman/rest/wsgiapp.py
+++ b/src/mailman/rest/wsgiapp.py
@@ -57,7 +57,10 @@ class RootedAPI(API):
@transactional
def __call__(self, environ, start_response):
- """See `RestishApp`."""
+ # The only difference between this and the super class's wsgi API is
+ # that this wraps a transactional handler around the call. If an
+ # error occurs, the current transaction is aborted, otherwise it is
+ # committed.
return super(RootedAPI, self).__call__(
environ, start_response)
@@ -129,8 +132,7 @@ class RootedAPI(API):
if len(path_segments) == 0:
# We're at the end of the path, so the root must be the
# responder.
- method_map = create_http_method_map(
- resource, None, None, None)
+ method_map = create_http_method_map(resource, None, None)
responder = method_map[method]
return responder, {}, resource
this_segment = path_segments.pop(0)