summaryrefslogtreecommitdiff
path: root/src/mailman/rest/webservice.py
diff options
context:
space:
mode:
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