[Zope] Zope and Threads

Stefan H. Holek stefan@epy.co.at
Fri, 11 Jul 2003 14:43:20 +0200


--On Freitag, 11. Juli 2003 13:01 +0200 Johan Carlsson 
<johanc@easypublisher.com> wrote:

> I guess it would look something like this?
>
> import Globals
> db=Globals.DB
> connection=db.open()
> root = connection.root()

Note here that the ZODB root is *not* the Zope application object!

If you want the Zope root folder do this:

import Zope
app = Zope.app()
get_transaction().begin()
...
get_transaction().commit()
app._p_jar.close()


Stefan


--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.               /Pete McBreen/