Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
1f66b3c1
Commit
1f66b3c1
authored
Apr 10, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made tryToResolveConflict available as stand-alone function.
parent
618a6b8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
51 deletions
+52
-51
src/ZODB/ConflictResolution.py
src/ZODB/ConflictResolution.py
+52
-51
No files found.
src/ZODB/ConflictResolution.py
View file @
1f66b3c1
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment