[Zope-CVS] CVS: Products/AdaptableStorage/zodb - utils.py:1.2
Shane Hathaway
shane@zope.com
Mon, 20 Jan 2003 09:29:19 -0500
Update of /cvs-repository/Products/AdaptableStorage/zodb
In directory cvs.zope.org:/tmp/cvs-serv9745/zodb
Modified Files:
utils.py
Log Message:
Fixed object copying. The object copier assumed it could ghostify objects
immediately, but it turns out that the pickling machinery sometimes needs
to revisit objects.
=== Products/AdaptableStorage/zodb/utils.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/zodb/utils.py:1.1 Fri Jan 10 13:31:16 2003
+++ Products/AdaptableStorage/zodb/utils.py Mon Jan 20 09:29:17 2003
@@ -29,10 +29,6 @@
def persistent_id(ob, former_ghosts=former_ghosts):
if getattr(ob, '_p_changed', 0) is None:
# Load temporarily
- if former_ghosts:
- for g in former_ghosts:
- g._p_changed = None
- del former_ghosts[:]
former_ghosts.append(ob)
ob._p_changed = 0
return None