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, ...@@ -142,10 +142,7 @@ def persistent_id(object,
return None return None
return object.data return object.data
class ConflictResolvingStorage: def tryToResolveConflict(self, oid, committedSerial, oldSerial, newpickle):
"Mix-in class that provides conflict resolution handling for storages"
def tryToResolveConflict(self, oid, committedSerial, oldSerial, newpickle):
#class_tuple, old, committed, newstate = ('',''), 0, 0, 0 #class_tuple, old, committed, newstate = ('',''), 0, 0, 0
try: try:
file=StringIO(newpickle) file=StringIO(newpickle)
...@@ -199,3 +196,7 @@ class ConflictResolvingStorage: ...@@ -199,3 +196,7 @@ class ConflictResolvingStorage:
return 0 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