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

Justin Johnson justinjohnson at fastmail.fm
Tue Oct 14 07:49:11 MDT 2003


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've attached tap.py and login.py, 2 files that kinda show what I'm doing
now.  The code is mostly copied and modifed from Quotient.

Thanks.
-Justin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tap.py
Type: application/unknown
Size: 2584 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20031014/a063c021/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: login.py
Type: application/unknown
Size: 2495 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20031014/a063c021/attachment-0005.bin>


More information about the Twisted-Python mailing list