[Twisted-Python] HTTP Authentication Example for review

Christopher Armstrong radix at twistedmatrix.com
Wed Jul 16 16:56:53 EDT 2003

On Wed, Jul 16, 2003 at 04:46:46PM -0400, David McCurley wrote:
> But MyGuard doesn't have isLeaf=True because its not a leaf.  Its at the
> top of some resource tree/subtree that it guards.  
> I thought I had some type of problem with setting isLeaf=True in MyGuard
> and it not giving me the behavior I wanted (maybe only if it was the
> root resource).  That is, if I'm remembering the other night correctly
> :)  Maybe I'll read through the source again so I can figure out again
> why I don't have isLeaf.  I'm almost sure there is/was a reason.

Sorry, I was out of whack. You indeed do not need isLeaf. And you
still only need to override getChildWithDefault and render, not the
other two, whether it's the root resource or not.

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list