[Zope-CVS] CVS: Products/ZopeVersionControl - Version.py:1.11

Shane Hathaway shane at zope.com
Tue Apr 20 19:03:10 EDT 2004


Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv16545

Modified Files:
	Version.py 
Log Message:
Be careful to avoid calling __of__ when retrieving object state


=== Products/ZopeVersionControl/Version.py 1.10 => 1.11 ===
--- Products/ZopeVersionControl/Version.py:1.10	Fri Mar 12 16:08:10 2004
+++ Products/ZopeVersionControl/Version.py	Tue Apr 20 19:03:09 2004
@@ -98,7 +98,8 @@
     security.declarePrivate('copyState')
     def copyState(self):
         """Return an independent deep copy of the state of the version."""
-        return self.stateCopy(self._data, self)
+        data = self.__dict__.get('_data')  # Avoid __of__ hooks
+        return self.stateCopy(data, self)
 
     security.declarePrivate('stateCopy')
     def stateCopy(self, obj, container):




More information about the Zope-CVS mailing list