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