Context:
I pass a suConn connection as first argument to query methods decorated by an "auto_reconnect" decorator, so the suConn object's connect() method is called automatically. When doing that, queries for the datasets objects (and I assume others) silently return empty results.
Code example
This works
from omero.gateway import BlitzGateway
conn = BlitzGateway(host="localhost", username="root", passwd="omero", secure=True)
conn.connect()
suc = conn.suConn("john")
for dset in suc.getObjects('Dataset'):
print(dset.name)
Ouput (as expected):
dataset1
dataset2
This bugs
from omero.gateway import BlitzGateway
conn = BlitzGateway(host="localhost", username="root", passwd="omero", secure=True)
conn.connect()
suc = conn.suConn("john")
# This returns True
suc.connect()
for dset in suc.getObjects('Dataset'):
print(dset.name)
Context: I pass a
suConn
connection as first argument to query methods decorated by an "auto_reconnect" decorator, so the suConn object'sconnect()
method is called automatically. When doing that, queries for the datasets objects (and I assume others) silently return empty results.Code example
This works
Ouput (as expected):
This bugs
There is no output (no dataset is found)