[ZODB-Dev] undo / non-undoable

Tim Peters tim at zope.com
Mon Feb 16 22:47:04 EST 2004


[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