[Twisted-web] overriding resource getting with nevow+twisted
James Y Knight
foom at fuhm.net
Wed Nov 24 15:13:56 MST 2004
On Nov 24, 2004, at 1:36 PM, Samuel Reynolds wrote:
> With Nevow, the choke point is getDynamicChild:
>
> def getDynamicChild(self, name, request):
> << CONDITIONALLY SERVE YOUR STUFF HERE >>
>
> # Fall through to default processing
> return super(MyRendererClass,self).getDynamicChild(name, request)
>
> (Replace 'MyRendererClass' with your Renderer subclass, of course.)
Err, despite my earlier message, of course, getDynamicChild *was* also
in Nevow until recently. But now it's deprecated, and also not the
"main" method, which was and is locateChild. Sorry 'bout the confusion.
;)
James
More information about the Twisted-web
mailing list