omero-py
omero-py copied to clipboard
BlitzGateway.getSession() is different from BlitzGateway.c.getSession()
conn = BlitzGateway(username=..., host=..., passwd=..., securet=True)
print(type(conn.getSession()))
print(type(conn.c.getSession()))
output:
<class 'omero.model.SessionI'>
<class 'omero.api.ServiceFactoryPrx'>
conn.c.getSession() behaves intuitively, e.g. you can call conn.c.getSession().getQueryService(). conn.getSession() doesn't.
It would likely take deprecating one or both of these and introducing new versions to not lead to more confusion. c.getSession would additionally need to be modified in Java & C++.