diff options
| author | Barry Warsaw | 2010-08-10 19:09:22 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2010-08-10 19:09:22 -0400 |
| commit | 3426c60480b6cf3492c63e7cb5d115ae2d3d8930 (patch) | |
| tree | fcb04716309ad73bf524a081613ae35ba9f0d929 /src/mailman/rest/helpers.py | |
| parent | 02ac6590baaad126be1f6154794bce5ccecaaf99 (diff) | |
| download | mailman-3426c60480b6cf3492c63e7cb5d115ae2d3d8930.tar.gz mailman-3426c60480b6cf3492c63e7cb5d115ae2d3d8930.tar.zst mailman-3426c60480b6cf3492c63e7cb5d115ae2d3d8930.zip | |
Diffstat (limited to 'src/mailman/rest/helpers.py')
| -rw-r--r-- | src/mailman/rest/helpers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index b17cdbca7..4bef720ef 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -35,6 +35,7 @@ import hashlib from datetime import datetime from lazr.config import as_boolean from restish.http import Response +from restish.resource import MethodDecorator from mailman.config import config @@ -193,3 +194,9 @@ def restish_matcher(function): def no_content(): """204 No Content.""" return Response('204 No Content', [], None) + + +# restish doesn't support HTTP PATCH (it's not standard). +class PATCH(MethodDecorator): + """ http PATCH method """ + method = 'PATCH' |
