summaryrefslogtreecommitdiff
path: root/src/mailman/rest/webservice.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-17 14:40:03 -0400
committerBarry Warsaw2009-08-17 14:40:03 -0400
commite00ce1fdd8675cbde9f4e3523d109c8558e4ba06 (patch)
treec981a7338f5d13619570edaa05ecf34afd0b696e /src/mailman/rest/webservice.py
parent5f73886dee1afd0639dbe93d92ac828a709df58f (diff)
downloadmailman-e00ce1fdd8675cbde9f4e3523d109c8558e4ba06.tar.gz
mailman-e00ce1fdd8675cbde9f4e3523d109c8558e4ba06.tar.zst
mailman-e00ce1fdd8675cbde9f4e3523d109c8558e4ba06.zip
Diffstat (limited to 'src/mailman/rest/webservice.py')
-rw-r--r--src/mailman/rest/webservice.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mailman/rest/webservice.py b/src/mailman/rest/webservice.py
index 054b04ae9..e1b5502d7 100644
--- a/src/mailman/rest/webservice.py
+++ b/src/mailman/rest/webservice.py
@@ -34,9 +34,8 @@ import logging
# proper Mailman logger instead of stderr, as is the default.
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
-from lazr.restful.publisher import WebServiceRequestTraversal
+from lazr.restful.simple import Request
from zope.interface import implements
-from zope.publisher.browser import BrowserRequest
from zope.publisher.publish import publish
from mailman.config import config
@@ -49,11 +48,6 @@ log = logging.getLogger('mailman.http')
-# pylint: disable-msg=W0232
-class AdminWebServiceRequest(WebServiceRequestTraversal, BrowserRequest):
- """A request for the admin REST interface."""
-
-
class AdminWebServiceApplication:
"""A WSGI application for the admin REST interface."""
@@ -67,7 +61,7 @@ class AdminWebServiceApplication:
environ = self.environ
# Create the request based on the HTTP method used.
method = environ.get('REQUEST_METHOD', 'GET').upper()
- request = AdminWebServiceRequest(environ['wsgi.input'], environ)
+ request = Request(environ['wsgi.input'], environ)
request.setPublication(AdminWebServicePublication(self))
# Support post-mortem debugging.
handle_errors = environ.get('wsgi.handleErrors', True)