[Zope] get_transaction().commit() seems not to work ?
Dieter Maurer
dieter at handshake.de
Wed Dec 10 14:17:16 EST 2003
Harm_Kirchhoff at mail.digital.co.jp wrote at 2003-12-10 14:08 +0900:
> I seem not to be able to save my data to ZODB, I wonder what I do wrong
>here:
> ...
> storage = FileStorage.FileStorage('C:\Documents and
>Settings\Kirchhoff\My Documents\SALES\DataBase\SalesDB.fs')
> db = DB(storage)
> connection = db.open()
> dbroot = connection.root()
>
> DB.dbroot = { 'testme' : {'i love tests' : [1,2,3]}}
You probably want to modify "dbroot" (the root of your datbase).
What you do is: give the DB class a new attribute "dbroot".
This is something completely different.
Try: "dbroot['testme'] = ..."
> get_transaction().commit()
And be a bit more careful...
--
Dieter
More information about the Zope
mailing list