[Twisted-web] overriding resource getting with nevow+twisted

James Y Knight foom at fuhm.net
Wed Nov 24 15:07:38 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.)

Untrue. That's kinda the case with twisted.web.woven, not Nevow. Of 
course even there, getDynamicChild isn't a choke-point..the "main" 
lookup function through which everything else goes is 
getChildWithDefault.

For nevow, the single lookup method is locateChild.

James




More information about the Twisted-web mailing list