[Twisted-Python] Patch: Make twisted.web.distrib work with twisted.web.vhost

Glyph Lefkowitz glyph at twistedmatrix.com
Fri May 16 13:11:39 EDT 2003


On Friday, May 16, 2003, at 09:00 AM, Tom 'Korpios' Tobin wrote:

> As things stand, when twisted.web.vhost calls a virtual host's 
> getChildWithDefault, it ends up calling getChild.  As 
> ResourceSubscription has no getChild, the render call never happens to 
> make the distributed connection.  By returning self, we can make this 
> happen.

This strikes me as a hack.  Rather than returning self and screwing up 
prepath/postpath, the virtual host ought to be honoring isLeaf.





More information about the Twisted-Python mailing list