[Zope-CVS] CVS: Products/ZopeVersionControl - ZopeVersion.py:1.4
Shane Hathaway
shane@zope.com
Wed, 15 Jan 2003 17:27:42 -0500
Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv31582
Modified Files:
ZopeVersion.py
Log Message:
Worked around the lazy returns from BTreeFolder2.objectIds()/objectValues()
=== Products/ZopeVersionControl/ZopeVersion.py 1.3 => 1.4 ===
--- Products/ZopeVersionControl/ZopeVersion.py:1.3 Wed Jan 15 17:17:46 2003
+++ Products/ZopeVersionControl/ZopeVersion.py Wed Jan 15 17:27:39 2003
@@ -23,8 +23,8 @@
def cloneObjectManager(object):
"""Makes a copy of an object manager without its subitems.
"""
- ids = object.objectIds()
- values = object.objectValues()
+ ids = list(object.objectIds())
+ values = list(object.objectValues())
object = Version.cloneByPickle(object, values)
for id in ids:
object._delOb(id)