Commit f248b5a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b1e344c9
...@@ -14,6 +14,7 @@ from persistent import Persistent ...@@ -14,6 +14,7 @@ from persistent import Persistent
from wendelin.lib.testing import TestDB_ZEO, TestDB_NEO from wendelin.lib.testing import TestDB_ZEO, TestDB_NEO
from golang import func, defer
from golang import sync, context from golang import sync, context
...@@ -31,8 +32,8 @@ def main(): ...@@ -31,8 +32,8 @@ def main():
# XXX defer(tdb.teardown) # XXX defer(tdb.teardown)
# two ZODB client storage connections to the same server # two ZODB client storage connections to the same server
zstor1 = tdb.getZODBStorage() # ; defer(zstor1.close) zstor1 = tdb.getZODBStorage() ; defer(zstor1.close)
zstor2 = tdb.getZODBStorage() # ; defer(zstor2.close) zstor2 = tdb.getZODBStorage() ; defer(zstor2.close)
db1 = DB(zstor1) db1 = DB(zstor1)
db2 = DB(zstor2) db2 = DB(zstor2)
...@@ -41,7 +42,7 @@ def main(): ...@@ -41,7 +42,7 @@ def main():
# XXX doc # XXX doc
def init(): def init():
transaction.begin() transaction.begin()
zconn = db.open() zconn = db1.open()
root = zconn.root() root = zconn.root()
root['obj1'] = PInt(0) root['obj1'] = PInt(0)
...@@ -53,10 +54,12 @@ def main(): ...@@ -53,10 +54,12 @@ def main():
def C1(ctx, N): def C1(ctx, N):
# XXX # XXX
pass
def C2(ctx, N): def C2(ctx, N):
# XXX # XXX
pass
......
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