[Zodb-checkins] CVS: Zope3/lib/python/Persistence - IPersistent.py:1.1.4.4

Jeremy Hylton jeremy@zope.com
Mon, 11 Feb 2002 16:09:09 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv14312

Modified Files:
      Tag: Zope-3x-branch
	IPersistent.py 
Log Message:
Define _p_independent().

And fix typo.


=== Zope3/lib/python/Persistence/IPersistent.py 1.1.4.3 => 1.1.4.4 ===
 
     Note that there is a separate C API that is not included here.
-    The C API requires a specific data layouit and defines an
+    The C API requires a specific data layout and defines an
     additional state, 'sticky' that is used to pevent object
     deactivation while in C routines.
     """
@@ -93,4 +93,13 @@
         """Deactivate the object
 
         Change the object to the ghost state is it is in the
-        up-to-date state."""
+        up-to-date state.
+        """
+
+    def _p_independent():
+        """Hook for subclasses to prevent read conflict errors.
+
+        A specific peristent object type can defined this method and
+        have it return true if the data manager should ignore read
+        conflicts for this object.
+        """