summaryrefslogtreecommitdiff
path: root/src/mailman/rest/webservice.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-06-29 21:30:04 -0400
committerBarry Warsaw2009-06-29 21:30:04 -0400
commit853060fa5fd453b745b09d991b8053c2024cb079 (patch)
tree727e04460a2b2314d3d2d64048a7a9bf29131d25 /src/mailman/rest/webservice.py
parentcdc95447d97c43f93e8c4b282f150228a5620703 (diff)
downloadmailman-853060fa5fd453b745b09d991b8053c2024cb079.tar.gz
mailman-853060fa5fd453b745b09d991b8053c2024cb079.tar.zst
mailman-853060fa5fd453b745b09d991b8053c2024cb079.zip
Diffstat (limited to 'src/mailman/rest/webservice.py')
-rw-r--r--src/mailman/rest/webservice.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/rest/webservice.py b/src/mailman/rest/webservice.py
index bf1012203..a76ad3863 100644
--- a/src/mailman/rest/webservice.py
+++ b/src/mailman/rest/webservice.py
@@ -35,14 +35,13 @@ import logging
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
from lazr.restful.publisher import WebServiceRequestTraversal
-from pkg_resources import resource_string
-from zope.configuration import xmlconfig
from zope.interface import implements
from zope.publisher.browser import BrowserRequest
from zope.publisher.publish import publish
from mailman.config import config
from mailman.core.system import system
+from mailman.interfaces.domain import IDomainSet
from mailman.interfaces.rest import IResolvePathNames
from mailman.rest.publication import AdminWebServicePublication
@@ -84,6 +83,7 @@ class AdminWebServiceApplication:
"""Maps root names to resources."""
top_level = dict(
system=system,
+ domains=IDomainSet(config),
)
return top_level.get(name)
@@ -99,8 +99,6 @@ class AdminWebServiceWSGIRequestHandler(WSGIRequestHandler):
def make_server():
"""Create the WSGI admin REST server."""
- zcml = resource_string('mailman.rest', 'configure.zcml')
- xmlconfig.string(zcml)
host = config.webservice.hostname
port = int(config.webservice.port)
server = WSGIServer((host, port), AdminWebServiceWSGIRequestHandler)