[Zope-CVS] CVS: Products/ZopeVersionControl - ZopeVersion.py:1.5

Shane Hathaway shane@zope.com
Wed, 15 Jan 2003 17:35:00 -0500


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

Modified Files:
	ZopeVersion.py 
Log Message:
Avoid the expense of pickling items of the container, this time for real. ;-)


=== Products/ZopeVersionControl/ZopeVersion.py 1.4 => 1.5 ===
--- Products/ZopeVersionControl/ZopeVersion.py:1.4	Wed Jan 15 17:27:39 2003
+++ Products/ZopeVersionControl/ZopeVersion.py	Wed Jan 15 17:34:57 2003
@@ -24,7 +24,7 @@
     """Makes a copy of an object manager without its subitems.
     """
     ids = list(object.objectIds())
-    values = list(object.objectValues())
+    values = [aq_base(o) for o in object.objectValues()]
     object = Version.cloneByPickle(object, values)
     for id in ids:
         object._delOb(id)