[Zope3-dev] Twisted Zope

Marius Gedminas mgedmin at b4net.lt
Thu Nov 11 10:33:00 EST 2004


On Wed, Nov 10, 2004 at 03:13:57PM -0700, Shane Hathaway wrote:
> I just put together a basic bridge between the Twisted HTTP server and
> Zope X3.  I've attached it.  Check it out!  It's only a little grotty. ;-)
> 
> Note that it is single-threaded and does not use ZConfig for port and log
> file configuration.  In the application I'm building, Twisted runs
> multiple services, only one of which is Zope, and everything uses ZODB. 
> In a scenario like mine, I think the safety of single-threaded programming
> outweighs the risk of slow response due to long-running transactions. 
> Other scenarios might want different policies.

If anyone wants an example of a multi-threaded solution for using ZODB
with Twisted's HTTP server, you can take a look at SchoolTool:

  http://source.schooltool.org/viewcvs/trunk/schooltool/src/schooltool/http.py?rev=2057&view=markup

Marius Gedminas
-- 
main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)for(x
=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))for(i=k=r=0;
j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}
/* Mandelbrot in ASCII. */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20041111/b5c73e47/attachment.bin


More information about the Zope3-dev mailing list