summaryrefslogtreecommitdiff
path: root/src/mailman/rest/root.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-08-14 13:43:35 -0400
committerBarry Warsaw2014-08-14 13:43:35 -0400
commit4236657a07af91b1a247ca3fecc3838a875d127f (patch)
tree860513dc336f3dd10124fbfba94dc01ab6fdcd3f /src/mailman/rest/root.py
parent994abc4ce1d67d5a96d54912134407d3271e3839 (diff)
downloadmailman-4236657a07af91b1a247ca3fecc3838a875d127f.tar.gz
mailman-4236657a07af91b1a247ca3fecc3838a875d127f.tar.zst
mailman-4236657a07af91b1a247ca3fecc3838a875d127f.zip
Diffstat (limited to 'src/mailman/rest/root.py')
-rw-r--r--src/mailman/rest/root.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py
index c8dce0eca..5db59ad7d 100644
--- a/src/mailman/rest/root.py
+++ b/src/mailman/rest/root.py
@@ -28,7 +28,6 @@ __all__ = [
import falcon
from base64 import b64decode
-from restish import http
from zope.component import getUtility
from mailman.config import config
@@ -77,7 +76,7 @@ class Root:
raise falcon.HTTPUnauthorized(
b'401 Unauthorized',
b'User is not authorized for the REST API')
- return TopLevel(), segments
+ return TopLevel()
class System:
@@ -179,10 +178,10 @@ class TopLevel:
fqdn_listname, template = segments
language = 'en'
else:
- return http.bad_request()
+ return BadRequest(), []
mlist = getUtility(IListManager).get(fqdn_listname)
if mlist is None:
- return http.not_found()
+ return NotFound(), []
# XXX dig out content-type from request
content_type = None
return TemplateFinder(