[Zope3-Users] Using twisted spread client within zope
David Pratt
fairwinds at eastlink.ca
Thu Jun 22 14:41:34 EDT 2006
Hi Stephane. It is possible to use a spread client in zope. That said, I
am not sure whether you are attempting to integrate the new pb
(unstable) or currently stable pb. Either way, I cannot provide code for
you but say that this is not trivial. It also requires conforming zope
storages to interact with. Your methods need to interact with the zope's
storages if you want zope to do its thing properly.
This adds significantly to the complexity since the storage internals of
zope take some time to learn and significant time to understand well
enough to modify and construct storages. Once you have tested a suitable
client server, you will also need to modify zope's startup to include
your client service as part of zope's multiservice.
My advice to you is that you may be better off with a web service since
this can be configured easily in zope since you are not involving the
storage layer directly. It is just part of you app.
Regards,
David
Stéphane Brault wrote:
> Hi again,
> in order to call my twisted process I need to run the spread client within Zope,
> is this possible (maybe through a utility). I'm not sure this would integrate well
> with Zope mainly because of the twisted logic (deferred, ...), but I might be wrong
> (this wouldn't be the first time ;-)). Has someone had any experience with that ?
>
> Thanks,
>
> Stéphane
>
> ----- Message d'origine ----
> De : Stéphane Brault <stephane_brault at yahoo.fr>
> À : user-list zope <zope3-users at zope.org>
> Envoyé le : Mardi, 20 Juin 2006, 12h59mn 22s
> Objet : [Zope3-Users] Using twisted spread client within zope
>
> Hi,
> for my application I have to communicate with external web services,
> these communications have to be scheduled. That is why I use twisted processes
> to communicate with external servers and zope for the GUI side.
> I need to communicate from zope to the twisted processes, has anyone
> done that, especially with spread, or do I need to go through http ?
>
> Thanks,
>
> Stéphane
>
>
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
>
>
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
More information about the Zope3-users
mailing list