twisted.web.resource putChild method

Hi, I am new to twisted and just want to know a very simple thing Do we always have to use putChild method in __init__() of a Class or we can use it any where in the Class for example with in render function in which we do self.putChild Thanks

You can do that most anywhere, I like to do it in getChild() to create resources when they are first accessed. -Andy Fundinger On Mon, Jul 21, 2008 at 6:31 PM, arun chhetri <chhetriarun84@gmail.com> wrote:
Hi, I am new to twisted and just want to know a very simple thing
Do we always have to use putChild method in __init__() of a Class or we can use it any where in the Class for example with in render function in which we do self.putChild
Thanks
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
-- Blog: http://channel3b.wordpress.com Second Life Name: Ciemaar Flintoff What would you do if they outlawed hypothetical questions?
participants (2)
-
Andy Fundinger
-
arun chhetri