- child_uri = URIHandler()
- child_cap = URIHandler()
- child_file = FileHandler()
- child_named = FileHandler()
+ self.child_uri = URIHandler(client)
+ self.child_cap = URIHandler(client)
+
+ self.child_file = FileHandler(client)
+ self.child_named = FileHandler(client)
+ self.child_status = status.Status(client) # TODO: use client.history
+ self.child_statistics = status.Statistics(client.stats_provider)
+
+ def child_helper_status(self, ctx):
+ # the Helper isn't attached until after the Tub starts, so this child
+ # needs to created on each request
+ try:
+ helper = self.client.getServiceNamed("helper")
+ except KeyError:
+ helper = None
+ return status.HelperStatus(helper)