[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/interfaces.py Added more
detail on return values.
Jim Fulton
jim at zope.com
Fri May 11 16:04:21 EDT 2007
Log message for revision 75690:
Added more detail on return values.
Fixed a typo.
Changed:
U ZODB/trunk/src/ZODB/interfaces.py
-=-
Modified: ZODB/trunk/src/ZODB/interfaces.py
===================================================================
--- ZODB/trunk/src/ZODB/interfaces.py 2007-05-11 20:04:17 UTC (rev 75689)
+++ ZODB/trunk/src/ZODB/interfaces.py 2007-05-11 20:04:21 UTC (rev 75690)
@@ -614,6 +614,12 @@
- An iterable of object-id and serial pairs giving new serials
for objects.
+
+ A serial, returned as a string or in a sequence of oid/serial
+ pairs, may be the special value
+ ZODB.ConflictResolution.ResolvedSerial to indicate that a
+ conflict occured and that the object should be invalidated.
+
"""
def tpc_abort(transaction):
@@ -663,8 +669,14 @@
The return value can be either None or a sequence of object-id
and serial pairs giving new serials for objects who's ids were
passed to previous store calls in the same transaction.
- After the tpc_vote call, bew serials must have been returned,
+ After the tpc_vote call, new serials must have been returned,
either from tpc_vote or store for objects passed to store.
+
+ A serial returned in a sequence of oid/serial pairs, may be
+ the special value ZODB.ConflictResolution.ResolvedSerial to
+ indicate that a conflict occured and that the object should be
+ invalidated.
+
"""
class IStorageRestoreable(IStorage):
More information about the Zodb-checkins
mailing list