Commit 99d87495 authored by Joshua Woelfel's avatar Joshua Woelfel

Fixed syntax error and added historic connection functionality to zconn_at

parent b8666c09
...@@ -180,13 +180,15 @@ def zconn_at(zconn): # -> tid ...@@ -180,13 +180,15 @@ def zconn_at(zconn): # -> tid
raise AssertionError("zconn_at: TODO: add support for zstor %r" % zstor) raise AssertionError("zconn_at: TODO: add support for zstor %r" % zstor)
elif zmajor == 4: elif zmajor == 4:
if not zconn.before if zconn.before is None:
zconn._inv_lock.acquire() zconn._inv_lock.acquire()
try: try:
viewed_state = zconn.viewed_db_state viewed_state = zconn.viewed_db_state
finally: finally:
zconn._inv_lock.release() zconn._inv_lock.release()
return viewed_state return viewed_state
else:
return before2at(zconn.before)
# TODO ZODB3 # TODO ZODB3
else: else:
......
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