[Twisted-Python] web Resource question

Kevin Mcintyre kebin70 at gmail.com
Thu Jun 16 12:14:37 MDT 2016


Hey, thanks for the reply.

It seems like there's the possibility of more beneficial assignments...but
first trying to understand if there's a specific reason for the
child.server assignment.

On Thu, Jun 16, 2016 at 5:11 AM, Cory Benfield <cory at lukasa.co.uk> wrote:

>
> > 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
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160616/fb03a5ab/attachment-0002.html>


More information about the Twisted-Python mailing list