[ZODB-Dev] undo / non-undoable
Harm_Kirchhoff at mail.digital.co.jp
Harm_Kirchhoff at mail.digital.co.jp
Tue Feb 17 00:02:28 EST 2004
Thanks Tim, that was it.
[Harm_Kirchhoff at mail.digital.co.jp]
> ...
> I isolated the problem in the attached code. Running this code
> produces this output:
...
> def test_undo2():
> root,connection,db,storage = open_zodb('C:/temp/test_zodb.fs')
...
> print 'willl try to undo:',log[0] ['id']
> storage.undo( log[0] ['id'] )
Try calling undo() on the database instead of the storage (i.e., change
the
line above to db.undo(...)). FileStorage.undo() can't succeed; it's an
old,
unsupported API that should have been removed.
More information about the ZODB-Dev
mailing list