[Zope-Checkins] CVS: Zope2 - History.py:1.8
evan@serenade.digicool.com
evan@serenade.digicool.com
Mon, 4 Jun 2001 14:37:12 -0400
Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/home/evan/Zope/trunk/lib/python/OFS
Modified Files:
History.py
Log Message:
Get rid of current attributes before copying a historical state to the present.
--- Updated File History.py in package Zope2 --
--- History.py 2001/04/27 20:27:41 1.7
+++ History.py 2001/06/04 18:37:11 1.8
@@ -212,6 +212,9 @@
if serial != self._p_serial:
self.manage_beforeHistoryCopy()
state=self._p_jar.oldstate(self, serial)
+ # Scrub the object before restoring the old state
+ self._p_changed=0
+ self._p_deactivate()
self.__setstate__(state)
self._p_changed=1
self.manage_afterHistoryCopy()