Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
neoppod
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
Show 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):
...
@@ -797,8 +797,6 @@ class Application(object):
data
=
tryToResolveConflict
(
oid
,
current_serial
,
data
=
tryToResolveConflict
(
oid
,
current_serial
,
undone_tid
,
undo_data
,
data
)
undone_tid
,
undo_data
,
data
)
except
ConflictError
:
except
ConflictError
:
data
=
None
if
data
is
None
:
raise
UndoError
(
'Some data were modified by a later '
\
raise
UndoError
(
'Some data were modified by a later '
\
'transaction'
,
oid
)
'transaction'
,
oid
)
undo_serial
=
None
undo_serial
=
None
...
...
neo/tests/client/testClientApp.py
View file @
ffe34600
...
@@ -502,12 +502,10 @@ class ClientApplicationTests(NeoUnitTestBase):
...
@@ -502,12 +502,10 @@ class ClientApplicationTests(NeoUnitTestBase):
app
=
self
.
getApp
()
app
=
self
.
getApp
()
tid
=
self
.
makeTID
()
tid
=
self
.
makeTID
()
txn
=
self
.
makeTransactionObject
()
txn
=
self
.
makeTransactionObject
()
def
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
):
pass
app
.
master_conn
=
Mock
()
app
.
master_conn
=
Mock
()
conn
=
Mock
()
conn
=
Mock
()
self
.
assertRaises
(
StorageTransactionError
,
app
.
undo
,
tid
,
self
.
assertRaises
(
StorageTransactionError
,
app
.
undo
,
tid
,
txn
,
tryToResolveConflict
)
txn
,
failing_
tryToResolveConflict
)
# no packet sent
# no packet sent
self
.
checkNoPacketSent
(
conn
)
self
.
checkNoPacketSent
(
conn
)
self
.
checkNoPacketSent
(
app
.
master_conn
)
self
.
checkNoPacketSent
(
app
.
master_conn
)
...
@@ -612,7 +610,7 @@ class ClientApplicationTests(NeoUnitTestBase):
...
@@ -612,7 +610,7 @@ class ClientApplicationTests(NeoUnitTestBase):
def
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
,
def
tryToResolveConflict
(
oid
,
conflict_serial
,
serial
,
data
,
committedData
=
''
):
committedData
=
''
):
marker
.
append
((
oid
,
conflict_serial
,
serial
,
data
,
committedData
))
marker
.
append
((
oid
,
conflict_serial
,
serial
,
data
,
committedData
))
r
eturn
None
r
aise
ConflictError
# The undo
# The undo
txn
=
self
.
beginTransaction
(
app
,
tid
=
tid3
)
txn
=
self
.
beginTransaction
(
app
,
tid
=
tid3
)
self
.
assertRaises
(
UndoError
,
app
.
undo
,
tid1
,
txn
,
tryToResolveConflict
)
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