Just figured it out, hope it&#39;s helpful to someone.<div><br class="webkit-block-placeholder"></div><div><div>import threading</div><div>import time</div><div>from ZODB import DB,FileStorage</div><div>import transaction</div>
<div><br class="webkit-block-placeholder"></div><div>class myThread(threading.Thread):</div><div>&nbsp;&nbsp; &nbsp;def run(self):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;time.sleep(1)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;Access from thread&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;threadConn = 
db.open()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;threadRoot = threadConn.root()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;The root as opened by the thread:&quot;,threadRoot</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;Main writing to the root&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;threadRoot[&#39;thread&#39;]=1
</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;Committing transcation&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;transaction.commit()</div><div><br class="webkit-block-placeholder"></div><div>newThread = myThread()</div><div><br class="webkit-block-placeholder">
</div><div>storage = FileStorage.FileStorage(&#39;data.fs&#39;)</div><div>db = DB(storage)</div><div><br class="webkit-block-placeholder"></div><div>newThread.start()</div><div>print &quot;Access from main&quot;</div><div>
mainConn = db.open()</div><div><br class="webkit-block-placeholder"></div><div>mainRoot = mainConn.root()</div><div>print &quot;The root as opened by the main:&quot;,mainRoot</div><div>print &quot;Main writing to the root&quot;
</div><div>mainRoot[&#39;main&#39;]=1</div><div>print &quot;Committing transaction&quot;</div><div>transaction.commit()</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div>
<div>newThread.join()</div><div><br class="webkit-block-placeholder"></div><div>Regards,</div><div>Kenneth Miller</div></div>