[Twisted-Python] web Resource question

Cory Benfield cory at lukasa.co.uk
Thu Jun 16 06:11:23 MDT 2016


> On 16 Jun 2016, at 05:16, Kevin Mcintyre <kebin70 at gmail.com> wrote:
> 
> 
> what is child.server = self.server in Resource.putChild?
> 
> shouldn't it be child.server = self?

I don’t think so. The reference to the server is presumably intended to refer to the Site object that is hosting the Resource. With that said, I can’t actually *find* anywhere that sets the server on a Resource, so it’s possible that the whole thing is vestigial.

Cory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: </pipermail/twisted-python/attachments/20160616/5c24662e/attachment.sig>


More information about the Twisted-Python mailing list