Here are the examples of the python api twisted.web.resource.putChild taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: ants Source File: webservice.py
def __init_service(self):
resource = Service(self.node_manager)
resource.putChild('cluster', ClusterService(self.node_manager))
resource.putChild('node', NodeService(self.node_manager))
resource.putChild('spider_list', SpiderListService(self.node_manager))
resource.putChild('crawl', CrawlService(self.node_manager))
resource.putChild('crawl_status', CrawlStatusService(self.node_manager))
self.service = server.Site(resource)