Start a new thread from a request
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. Any help appreciated. Wade Leftwich Ithaca, NY
Am Donnerstag, 17. April 2003 22:51 schrieb Wade Leftwich:
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.
I can not provide you any first hand help but you might want to have a look at the Xron product which uses threads: http://www.zope.org/Members/lstaffor/Xron HTH Jens Wolk
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
participants (3)
-
Dieter Maurer -
Jens Wolk -
Wade Leftwich