[Zodb-checkins] SVN: ZODB/branches/ctheune-blobsupport/src/ZODB/Connection.py Clarify XXX comment for obj._p_invalidate after discussion with Christian.

Chris McDonough chrism at plope.com
Sat Jun 11 12:39:19 EDT 2005


Log message for revision 30755:
  Clarify XXX comment for obj._p_invalidate after discussion with Christian.
  

Changed:
  U   ZODB/branches/ctheune-blobsupport/src/ZODB/Connection.py

-=-
Modified: ZODB/branches/ctheune-blobsupport/src/ZODB/Connection.py
===================================================================
--- ZODB/branches/ctheune-blobsupport/src/ZODB/Connection.py	2005-06-11 16:06:36 UTC (rev 30754)
+++ ZODB/branches/ctheune-blobsupport/src/ZODB/Connection.py	2005-06-11 16:39:19 UTC (rev 30755)
@@ -350,10 +350,12 @@
                 s = self._storage.storeBlob(oid, serial, p,
                                             obj._p_blob_uncommitted,
                                             self._version, transaction)
+                # we invalidate the object here in order to ensure
+                # that that the next attribute access of its name
+                # unghostify it, which will cause its blob data
+                # to be reattached "cleanly"
                 obj._p_invalidate()
-                # XXX CM: do we invalidate the object here in order to
-                # ensure that that the next attribute access of its
-                # name unghostify it?
+
             else:
                 s = self._storage.store(oid, serial, p, self._version,
                                         transaction)



More information about the Zodb-checkins mailing list