Commit f248b5a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

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