[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/ServerStub.py Fixed up documentation for loadEx.

Jim Fulton jim at zope.com
Thu Apr 26 19:19:12 EDT 2007


Log message for revision 74823:
  Fixed up documentation for loadEx.
  
  Renamed getSerial to getTid.
  

Changed:
  U   ZODB/trunk/src/ZEO/ServerStub.py

-=-
Modified: ZODB/trunk/src/ZEO/ServerStub.py
===================================================================
--- ZODB/trunk/src/ZEO/ServerStub.py	2007-04-26 23:19:06 UTC (rev 74822)
+++ ZODB/trunk/src/ZEO/ServerStub.py	2007-04-26 23:19:11 UTC (rev 74823)
@@ -177,13 +177,12 @@
         return self.rpc.call('zeoLoad', oid)
 
     ##
-    # Return current data for oid in version, the tid of the transaction that
-    # wrote the most recent revision, and the name of the version for the
-    # data returned.  Versions make this hard to understand; in particular,
-    # the version string returned may not equal the version string passed
-    # in, and that's "a feature" I don't understand.  Similarly, the tid
-    # returned is the tid of the most recent revision of oid, and that may
-    # not equal the tid of the transaction that wrote the data returned.
+    
+    # Return current data for oid in version, the tid of the
+    # transaction that wrote the most recent revision, and the name of
+    # the version for the data returned.  Note that if the object
+    # wasn't modified in the version, then the non-version data is
+    # returned and the returned version is an empty string.
     # @param oid object id
     # @param version string, name of version
     # @defreturn 3-tuple
@@ -275,8 +274,8 @@
     def loadBlob(self, oid, serial, version, offset):
         return self.rpc.call('loadBlob', oid, serial, version, offset)
 
-    def getSerial(self, oid):
-        return self.rpc.call('getSerial', oid)
+    def getTid(self, oid):
+        return self.rpc.call('getTid', oid)
 
     def loadSerial(self, oid, serial):
         return self.rpc.call('loadSerial', oid, serial)



More information about the Zodb-checkins mailing list