ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
20 stars 33 forks source link

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

Open manics opened 3 years ago

manics commented 3 years ago
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.

joshmoore commented 3 years ago

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