make '/operations' work again

This commit is contained in:
meejah 2019-08-07 17:19:57 -06:00
parent 9d4ba78302
commit 217e32e385
2 changed files with 5 additions and 2 deletions

View File

@ -156,7 +156,10 @@ class Root(MultiFormatPage):
self.client = client
# If set, clock is a twisted.internet.task.Clock that the tests
# use to test ophandle expiration.
self.putChild("operations", operations.OphandleTable(clock))
self.child_operations = operations.OphandleTable(clock)
self.putChild("operations", self.child_operations)
# XXX get rid of self.child_operations entirely when we remove the .remember() usage in webish
self.now_fn = now_fn
try:
s = client.getServiceNamed("storage")

View File

@ -166,7 +166,7 @@ class WebishServer(service.MultiService):
self.buildServer(webport, nodeurl_path, staticdir)
# XXX FIXME what does this really do?
if False and self.root.child_operations:
if self.root.child_operations:
self.site.remember(self.root.child_operations, IOpHandleTable)
self.root.child_operations.setServiceParent(self)