[Twisted-Python] woven and a web server in my plugin?

Andrew Bennetts andrew-twisted at puzzling.org
Tue Oct 14 08:01:16 MDT 2003


On Tue, Oct 14, 2003 at 07:49:11AM -0600, Justin Johnson wrote:
> I have a woven app I'm working on.  I used to use 'mktap web' to have
> twisted serve the app, but I also need to start a PB server, so I created
> a plugin.  The problem I'm having now is that I don't get the built-in
> functionality of the web server, like serving out things like a
> stylesheet in /templates/style.css, or images in /images.
> 
> Is there anyway to have my own plugin which adds the same functionality
> as the web server so I don't have to write code to handle all of that?
> 
> What is the recommended way to handle this?

I'd call twisted.tap.web.makeService (or updateApplication, if you're not
using CVS...) -- that's what 'mktap web' does, after all :)

-Andrew.





More information about the Twisted-Python mailing list