Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
1c3b7750
Commit
1c3b7750
authored
Nov 20, 2020
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X zconn_at for ZODB4
parent
cd5041bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
lib/tests/test_zodb.py
lib/tests/test_zodb.py
+1
-1
lib/zodb.py
lib/zodb.py
+3
-10
No files found.
lib/tests/test_zodb.py
View file @
1c3b7750
...
@@ -232,7 +232,7 @@ def test_deactivate_btree():
...
@@ -232,7 +232,7 @@ def test_deactivate_btree():
# verify that zconn_at gives correct answer.
# verify that zconn_at gives correct answer.
@
xfail
(
zmajor
<
5
,
reason
=
"zconn_at is TODO for ZODB4 and
ZODB3"
)
@
xfail
(
zmajor
<
4
,
reason
=
"zconn_at is TODO for
ZODB3"
)
@
func
@
func
def
test_zconn_at
():
def
test_zconn_at
():
stor
=
testdb
.
getZODBStorage
()
stor
=
testdb
.
getZODBStorage
()
...
...
lib/zodb.py
View file @
1c3b7750
...
@@ -182,17 +182,10 @@ def zconn_at(zconn): # -> tid
...
@@ -182,17 +182,10 @@ def zconn_at(zconn): # -> tid
# ZODB4
# ZODB4
#
#
# Connection:
# We rely on our patch in 4-nxd branch.
# .before !None for historic connections
#
# ._txn_time - if !None - set to tid of _next_ transaction
# XXX set to None initially - what to do?
#
# # XXX do something like that ZODB5 is doing:
# zconn._start = zconn._storage.lastTransaction() + 1
# # XXX _and_ check out queued invalidations
elif
zmajor
==
4
:
elif
zmajor
==
4
:
raise
AssertionError
(
"zconn_at: TODO: add support for ZODB4"
)
assert
'conn:at'
in
ZODB
.
nxd_patches
# XXX error message if not there
return
zconn
.
at
()
# ZODB3
# ZODB3
...
...
Kirill Smelkov
@kirr
mentioned in commit
1f866c00
·
Oct 28, 2021
mentioned in commit
1f866c00
mentioned in commit 1f866c00a099e7fb69e1f8ce575a768bc8e6a3ce
Toggle commit list
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