omero-py icon indicating copy to clipboard operation
omero-py copied to clipboard

BlitzGateway.getSession() is different from BlitzGateway.c.getSession()

Open manics opened this issue 4 years ago • 1 comments

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.

manics avatar Jan 25 '21 12:01 manics

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++.

joshmoore avatar Jan 26 '21 07:01 joshmoore