Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Paul Boddie <paul.boddie@em...> - 2004-06-07 09:24:04
From: Matt Feifarek [mailto:matt@...] wrote:
> A year ago or so, a few of you talked about integrating WK with
> Those discussions of last year revolved around various integration=20
> levels: moving servlets to resources, for example, but at this point
> like to consider Twisted just as an adapter: writing an adapter in=20
> Twisted to marshal a request and send it to a waiting AppServer, ala=20
> mod_webkit et al.
If you want some kind of adapter that works with Twisted and Webware
(amongst others) but which sits below the level of Page and Servlet, you
might want to consider WebStack (available from PyPI). I've been
considering writing Page and Servlet classes for WebStack which act like
their counterparts in Webware, but it hasn't been a priority so far;
WebStack is something I do in my spare time - I don't get paid to work
on it, unfortunately.
> But some theoretical questions:
> 1. Would this be a "Resource" or a protocol/factory?
I implemented WebStack's Twisted mechanisms on top of Twisted resources,
if I remember correctly - it just works when I run the setup script and
I haven't had to debug that part since I wrote it. ;-)
> 2. Given that Twisted is async, and WK is not, what are ways to keep
> twisted from blocking as WK runs a servlet? Of course, there is=20
> threading in twisted, but once the servlet has run and has made a big=20
> honkin' string (http data) it would be nice to cough that down to the=20
> client asynchronously. This would have implications for
> in servlets.
I wouldn't mind looking into this a bit more, preferably with assistance
from people in the know.
> 3. Am I crazy? Maybe.
Not at all! ;-)