diff options
| author | Barry Warsaw | 2015-04-23 19:41:27 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-23 19:41:27 -0400 |
| commit | 27adbbe43f51173e2ca297100e24dbf0c5655959 (patch) | |
| tree | 5aa5a074514b9904006fb72bacf12c4494134775 /src | |
| parent | 821d01f87dfc05b07de2f8919a7ed5f825f031e5 (diff) | |
| parent | fd3552fe5106b80961fcfbd66ed5e9424eaa2e15 (diff) | |
| download | mailman-27adbbe43f51173e2ca297100e24dbf0c5655959.tar.gz mailman-27adbbe43f51173e2ca297100e24dbf0c5655959.tar.zst mailman-27adbbe43f51173e2ca297100e24dbf0c5655959.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/docs/NEWS.rst | 1 | ||||
| -rw-r--r-- | src/mailman/rest/wsgiapp.py | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index 74d124f4e..3ecb38ec4 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -24,6 +24,7 @@ Architecture by the user, and approval by the moderator using unique tokens. ``IMailingList`` objects now have a ``subscription_policy`` attribute. (LP: #1095552) + * Port the REST machinery to Falcon 0.3. (LP: #1446881) Bugs ---- 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) |
