summaryrefslogtreecommitdiff
path: root/src/mailman/rest/webservice.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-07-16 22:36:06 -0400
committerBarry Warsaw2009-07-16 22:36:06 -0400
commit1bfc7f302f2730a679b2a4a103c2978d8e7c70ae (patch)
tree3d69d43841dcf838e9778d2e83cc3e58a7b9ed20 /src/mailman/rest/webservice.py
parentac3af23142c9b2417759f90837d68e15866b6793 (diff)
downloadmailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.gz
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.zst
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.zip
Diffstat (limited to 'src/mailman/rest/webservice.py')
-rw-r--r--src/mailman/rest/webservice.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mailman/rest/webservice.py b/src/mailman/rest/webservice.py
index 0469e442b..2f811133a 100644
--- a/src/mailman/rest/webservice.py
+++ b/src/mailman/rest/webservice.py
@@ -41,7 +41,7 @@ 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.domain import IDomainCollection, IDomainManager
from mailman.interfaces.rest import IResolvePathNames
from mailman.rest.publication import AdminWebServicePublication
@@ -82,13 +82,14 @@ class AdminWebServiceApplication:
def get(self, name):
"""Maps root names to resources."""
- log.debug('Getting top level name: %s', name)
top_level = dict(
system=system,
- domains=IDomainSet(config),
+ domains=IDomainCollection(IDomainManager(config)),
lists=config.db.list_manager,
)
- return top_level.get(name)
+ next_step = top_level.get(name)
+ log.debug('Top level name: %s -> %s', name, next_step)
+ return next_step