def getChild(self, name, txrequest):
target = self.get_target()
try:
newtarget = getattr(target, name)
return JsonRpcResource(self.crawler, newtarget)
except AttributeError:
return resource.ErrorPage(404, "No Such Resource", "No such child resource.")
评论列表
文章目录