From 8f8ce7616cc8e6149b27fbcb8e581fc35c814c87 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 6 Jul 2010 22:41:48 -0400 Subject: Fixes bug LP: #601899; delete list function in rest server. --- src/mailman/rest/helpers.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mailman/rest/helpers.py') diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index 8a82ebb60..be5d2b565 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -23,6 +23,7 @@ __metaclass__ = type __all__ = [ 'ContainerMixin', 'etag', + 'no_content', 'path_to', 'restish_matcher', ] @@ -32,8 +33,11 @@ import json import hashlib from lazr.config import as_boolean +from restish.http import Response + from mailman.config import config + COMMASPACE = ', ' @@ -173,3 +177,9 @@ def restish_matcher(function): """Decorator for restish matchers.""" function.score = () return function + + +# restish doesn't support HTTP response code 204. +def no_content(): + """204 No Content.""" + return Response('204 No Content', [], None) -- cgit v1.2.3-70-g09d2