Commit 1f66b3c1 authored by Jim Fulton's avatar Jim Fulton

Made tryToResolveConflict available as stand-alone function.

parent 618a6b8d
......@@ -142,10 +142,7 @@ def persistent_id(object,
return None
return object.data
class ConflictResolvingStorage:
"Mix-in class that provides conflict resolution handling for storages"
def tryToResolveConflict(self, oid, committedSerial, oldSerial, newpickle):
def tryToResolveConflict(self, oid, committedSerial, oldSerial, newpickle):
#class_tuple, old, committed, newstate = ('',''), 0, 0, 0
try:
file=StringIO(newpickle)
......@@ -199,3 +196,7 @@ class ConflictResolvingStorage:
return 0
class ConflictResolvingStorage:
"Mix-in class that provides conflict resolution handling for storages"
tryToResolveConflict=tryToResolveConflict
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment