From e00ce1fdd8675cbde9f4e3523d109c8558e4ba06 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 17 Aug 2009 14:40:03 -0400 Subject: We don't need the AadminWebServiceRequest any more. --- src/mailman/rest/webservice.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/mailman/rest/webservice.py') 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) -- cgit v1.2.3-70-g09d2