[Twisted-Python] newbie widget question
Hi, I've just started playing with Twisted 0.99.0. Bear with me please. I'd like to use widgets, but I do not understand how to 'hook' a widget into twisted web. The Example uses config.tac to specify main.Gadget() and 'twistd -g Example' to start the server. If I've got a web.tap, how do I use a widget? I see I can add a 'new web test widget' when using coil, but I don't know what this means. Any help would be greatly appreciated. -- --- Dennis Sacks dennis@illusions.com
On Tue, 17 Sep 2002, dennis@illusions.com wrote:
The Example uses config.tac to specify main.Gadget() and 'twistd -g Example' to start the server.
If you don't want to use a module, you can just put similar code in a Python source file and then use "twistd -y". Or you can just put "app.save()" at the end of it to manually create a tap. "mktap" is a way of programmatically record common configuration, not to create wonderful and unique condifurations.
On 17 Sep 2002, Moshe Zadka wrote:
If you don't want to use a module, you can just put similar code in a Python source file and then use "twistd -y". Or you can just put "app.save()" at the end of it to manually create a tap. "mktap" is a way of programmatically record common configuration, not to create wonderful and unique condifurations.
Thanks, Ok, so I'll take Example as my base to build on. How do I specify a 'doc root' and a logfile? Is there more example code I can look at? The twisted docs are very very brief...they probably contain all the info, but not spelled out enough for me to grasp at this point. --- Dennis Sacks dennis@illusions.com
participants (2)
-
dennis@illusions.com -
Moshe Zadka