[Twisted-web] Add segmentsResolved method to inevow.IResource

James Y Knight foom at fuhm.net
Wed Sep 8 14:59:40 MDT 2004


On Sep 8, 2004, at 7:05 AM, Matt Goodall wrote:
> I propose that we add one more method to the IResource API - a "hook"
> method that is called when the final segment has been located, i.e.
> there are no more path segments to process. The IResource definition of
> the method would look something like:
>
>     def segmentsResolved(self, ctx):
>         pass

Why is this different/easier to support/cleaner than returning a 
resource from renderHTTP?

Instead of:
C1.locateChild, C2.locateChild, C2.renderHTTP, C3.renderHTTP
we'll have:
C1.locateChild, C2.locateChild, C2.segmentsResolved, 
C3.segmentsResolved, C3.renderHTTP.

I don't see why that's a big difference?

James




More information about the Twisted-web mailing list