[ZODB-Dev] Is "reincarnation" of object in ZODB possible?

Dieter Maurer dieter at handshake.de
Wed Dec 6 13:44:00 EST 2006


Piotr Chamera wrote at 2006-12-6 00:57 +0100:
>I am using Zope 2.9 (zodb 3.6, FileStorage). The object I am interested 
>has several updates. Is there any way to get its previous states ("dead" 
>versions) to "live" objects (I need current state and all past states so 
>I cant? simply undo changes).

Yes -- But it might be a bit difficult when the object has
persistent subobjects.


The following code has chances to work (I used it for ZODB 3.2;
not sure whether it needs some modifications for ZODB 3.6).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: History.py
Type: text/x-python
Size: 1965 bytes
Desc: Accessing the history of ZODB objects (worked for ZODB
	3.2, may not work for other versions)
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20061206/027d9b0b/History.py
-------------- next part --------------


-- 
Dieter


More information about the ZODB-Dev mailing list