From fd3552fe5106b80961fcfbd66ed5e9424eaa2e15 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 23 Apr 2015 19:32:48 -0400 Subject: Port to Falcon 0.3. --- src/mailman/rest/wsgiapp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2