[Zodb-checkins] SVN: ZODB/branches/jim-storage-api-cleanup/src/ZODB/interfaces.py Documented loadSerial error condition.

Jim Fulton jim at zope.com
Thu Apr 26 16:32:47 EDT 2007


Log message for revision 74815:
  Documented loadSerial error condition.
  
  Removed version API.
  

Changed:
  U   ZODB/branches/jim-storage-api-cleanup/src/ZODB/interfaces.py

-=-
Modified: ZODB/branches/jim-storage-api-cleanup/src/ZODB/interfaces.py
===================================================================
--- ZODB/branches/jim-storage-api-cleanup/src/ZODB/interfaces.py	2007-04-26 19:35:44 UTC (rev 74814)
+++ ZODB/branches/jim-storage-api-cleanup/src/ZODB/interfaces.py	2007-04-26 20:32:46 UTC (rev 74815)
@@ -528,7 +528,8 @@
     def loadSerial(oid, serial):
         """Load the object record for the give transaction id
 
-        A data record is returned.
+        If a matching data record can be found, it is returned,
+        otherwise, POSKeyError is raised.
         """
 
     def new_oid():
@@ -909,48 +910,3 @@
             ...         break
         
         """
-
-class IStorageVersioning(IStorage):
-    """A storage supporting versions.
-
-    It is likely that version support will disappear from future
-    versions of ZODB.  There are known bugs in version handling.
-    """
-
-    def supportsVersions():
-        """Return True, idicating that the storage suports versions.
-        """
-
-    def abortVersion(version, transaction):
-        """Clear any changes made by the given version.
-        """
-        # used by DB
-
-    def commitVersion(source, destination, transaction):
-        """Save version changes
-
-        Store changes made in the source version into the destination
-        version. A VersionCommitError is raised if the source and
-        destination are equal or if the source is an empty string. The
-        destination may be an empty string, in which case the data are
-        saved to non-version storage.
-        """
-        # used by DB
-
-    def versionEmpty(version):
-        """true if the version for the given version string is empty.
-        """
-        # DB pass through
-
-    def modifiedInVersion(oid):
-        """the version that the object was modified in,
-
-        or an empty string if the object was not modified in a version
-        """
-        # DB pass through, sor of.  In the past (including present :),
-        # the DB tried to cache this.  We'll probably stop bothering.
-
-    def versions(max = None):
-        """A sequence of version strings for active versions
-        """
-        # DB pass through



More information about the Zodb-checkins mailing list