diff options
| author | Barry Warsaw | 2015-04-23 19:32:48 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-23 19:32:48 -0400 |
| commit | fd3552fe5106b80961fcfbd66ed5e9424eaa2e15 (patch) | |
| tree | 57c29e7c44f8a8d6a0b0bc797166cfd0bb0d1b05 | |
| parent | 821d01f87dfc05b07de2f8919a7ed5f825f031e5 (diff) | |
| download | mailman-fd3552fe5106b80961fcfbd66ed5e9424eaa2e15.tar.gz mailman-fd3552fe5106b80961fcfbd66ed5e9424eaa2e15.tar.zst mailman-fd3552fe5106b80961fcfbd66ed5e9424eaa2e15.zip | |
| -rw-r--r-- | src/mailman/rest/wsgiapp.py | 8 |
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) |
