mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
work around lack of getChild in nevow.rend.Page
This commit is contained in:
parent
4feba8d7f9
commit
9e999d0c68
@ -186,6 +186,14 @@ class Root(MultiFormatPage):
|
||||
|
||||
self.putChild("report_incident", IncidentReporter())
|
||||
|
||||
# until we get rid of nevow.Page in favour of twisted.web.resource
|
||||
# we can't use getChild() -- but we CAN use childFactory or
|
||||
# override locatechild
|
||||
def childFactory(self, ctx, name):
|
||||
request = IRequest(ctx)
|
||||
print(request)
|
||||
return self.getChild(name, request)
|
||||
|
||||
|
||||
def getChild(self, path, request):
|
||||
if path == "helper_status":
|
||||
|
Loading…
x
Reference in New Issue
Block a user