Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manics opened this issue Jan 25, 2021 · 1 comment
Open

Comments

@manics
Copy link
Member

manics commented Jan 25, 2021

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants