Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
ffe34600
Commit
ffe34600
authored
Jan 16, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! client: drop support for ZODB < 3.10
See commit
d9ab77b8
parent
9a6ad2e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
neo/client/app.py
neo/client/app.py
+0
-2
neo/tests/client/testClientApp.py
neo/tests/client/testClientApp.py
+2
-4
No files found.
neo/client/app.py
View file @
ffe34600
...
...
@@ -797,8 +797,6 @@ class Application(object):
data
=
tryToResolveConflict
(
oid
,
current_serial
,
undone_tid
,
undo_data
,
data
)
except
ConflictError
:
data
=
None
if
data
is
None
:
raise
UndoError
(
'Some data were modified by a later '
\
'transaction'
,
oid
)
undo_serial
=
None
...
...
neo/tests/client/testClientApp.py
View file @
ffe34600
...
...
@@ -502,12 +502,10 @@ class ClientApplicationTests(NeoUnitTestBase):
app
=
self
.
getApp
()
tid
=
self
.
makeTID
()
txn
=
self
.
makeTransactionObject
()
def
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
):
pass
app
.
master_conn
=
Mock
()
conn
=
Mock
()
self
.
assertRaises
(
StorageTransactionError
,
app
.
undo
,
tid
,
txn
,
tryToResolveConflict
)
txn
,
failing_
tryToResolveConflict
)
# no packet sent
self
.
checkNoPacketSent
(
conn
)
self
.
checkNoPacketSent
(
app
.
master_conn
)
...
...
@@ -612,7 +610,7 @@ class ClientApplicationTests(NeoUnitTestBase):
def
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
,
committedData
=
''
):
marker
.
append
((
oid
,
conflict_serial
,
serial
,
data
,
committedData
))
r
eturn
None
r
aise
ConflictError
# The undo
txn
=
self
.
beginTransaction
(
app
,
tid
=
tid3
)
self
.
assertRaises
(
UndoError
,
app
.
undo
,
tid1
,
txn
,
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