10 Dec
2003
10 Dec
'03
7:17 p.m.
Harm_Kirchhoff@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