Hey all,<div><br></div><div>I&#39;m using a thread to do some server-side work. The thread will be asked by different</div><div>requests to do the same thing at the same time, so I want the thread to do all the work</div><div>
once and return the data to the requests. The problem is that the requests each have</div><div>their own transaction and the thread essentially has none.</div><div><br></div><div>I can communicate between the two only using identifiers - not persistent objects - that</div>
<div>way the thread can process data in a different transaction than the requests yet still</div><div>return a meaningful reply. However, the thread has to start a new transaction each</div><div>time it processes something - which I know how to do:</div>
<div><br></div><div>    while True:</div><div>        #wait until asked to do something</div><div>        import transaction</div><div>        transaction.begin()</div><div><br></div><div>However, the thread needs access to the root object in order to turn the identifiers</div>
<div>gotten from the requests into persistent objects... how would I go about accessing</div><div>the root object in such a circumstance?</div><div><br></div><div>Thanks,</div><div>- Claudiu</div><div>    </div>