[Twisted-Python] Twisted 1.0.4 - NameVirtualHost and isLeaf

François Pinard pinard at iro.umontreal.ca
Wed Apr 30 20:03:18 EDT 2003

Hi, people.

Thanks to the recent explanations about `isLeaf', I was able to figure out
that if, with Twisted 1.0.4, I was unable to get virtual hosts to work, this
was because the `isLeaf' attribute of an instance of `vhost.NameVirtualHost'
is not True.  At least with the setup I use.  the instance's `render' method
is not called then, and consequently, the dispatching to the proper resource
does not occur.

In what circumstance would it be useful that such an instance has `isLeaf'
set to False?  I presume this might help me better understand resources.

François Pinard   http://www.iro.umontreal.ca/~pinard

More information about the Twisted-Python mailing list