[Zope] Start a new thread from a request
Dieter Maurer
dieter@handshake.de
Fri, 18 Apr 2003 22:59:38 +0200
Wade Leftwich wrote at 2003-4-17 16:51 -0400:
> I've got a Zope application that accepts some data from a user and uses
> it in an XML-RPC call to another server.
>
> The XML-RPC can take some itme, so I would like to put it into another
> thread and immediately return a page to the user.
>
> I've heard something about how I need to provide my new thread with a
> connection to the ZODB, but have not found a recipe.
In your thread, you do:
from Zope import app
root= app() # Zope's root object
# then use "[un]restrictedTraverse" to get at your objects
Dieter