[Zope] Zope2 + Twisted

Peter Sabaini peter at sabaini.at
Thu Mar 5 12:59:02 EST 2009


On Thursday 05 March 2009 18:46:33 you wrote:
> could this be satisficed by putting an apache proxy in front of both zope
> and twisted?

No, not really -- I'd like to use a client written on top of Twisted in a Zope 
product. So, I'd need the twisted reactor and libraries running in the Python 
VM that runs Zope. Which should be no problem except I suspect that I 
shouldn't be using the (threaded) ZServer then, because I think that would 
mess with twisted (which is not threadsafe for the most part). 

I thought if I'd switch to the twisted http server implementation that would 
take care of that -- no threaded ZServer, no problem. Except that doesn't seem 
to work as advertised, since the zope.app.twisted package is not present, and 
the one on PyPI seems to be geared towards Zope3, AFAICT.

Is that so? Is there an alternative zope.app.twisted package for Zope2?

thx,
peter.


> On Thu, Mar 5, 2009 at 6:17 AM, Peter Sabaini <peter at sabaini.at> wrote:
> > I'd like to run a Twisted client in Zope 2.10 (for a legacy app).
> >
> > How do I do that? Simply loading twisted.internet is probably not a good
> > idea
> > since Twisted would not work well with ZServer threads, right?
> >
> > One thing I tried was enabling Twisted in zope.conf but that gives me the
> > following stacktrace (abbr):
> >
> >  ...
> >  File "/usr/local/zope/2.10/src/Zope-2.10.7-
> > final/lib/python/ZConfig/matcher.py", line 188, in constuct
> >    s = st.datatype(s)
> >  File "/usr/local/zope/2.10/src/Zope-2.10.7-
> > final/lib/python/Zope2/Startup/datatypes.py", line 349, in __init__
> >    raise ImportError("You do not have twisted installed.")
> > ImportError: You do not have twisted installed.
> >
> >
> > I've got Twisted on my Pythonpath though.
> >
> > TIA,
> > peter.
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.zope.org/pipermail/zope/attachments/20090305/c42b7b79/attachment.bin 


More information about the Zope mailing list