Stefan H. Holek wrote:
--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()
I can't import Zope because Zope is already started and I don't want to run the Zope __init__ magic again. Or would it be safe to import Zope from within Zope (for instance a Zope Product)? -- Johan Carlsson Tel: + 46 8 31 24 94 Colliberty Mob: + 46 70 558 25 24 Torsgatan 72 Email: johanc@easypublisher.com SE-113 37 STOCKHOLM