[ZODB-Dev] get_transaction

Magnus Heino magnus.heino@pleon.sigma.se
Thu, 29 Nov 2001 08:47:23 +0100


Hi.

I have  a question about get_transaction()


---

from ZODB import FileStorage, DB

storage = FileStorage.FileStorage('/tmp/test-filestorage.fs')
db = DB( storage )
conn = db.open()

root1 = conn.root()
root2 = conn.root()

root1[1] = 1
root2[2] = 2

get_transaction().commit()

---

What will be committed? Both connections? Can I control that?

/Magnus