Skip to content

Commit

Permalink
set session from client
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Mar 1, 2024
1 parent 9ae6018 commit dbf00ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,12 @@ def __init__(self, username=None, passwd=None, client_obj=None, group=None,
self._sessionUuid = None
self._session_cb = None
self._session = None
if self.c is not None:
try:
self._sessionUuid = self.c.getSessionId()
self._session = self.c.getSession()
except omero.ClientError: # no session available
pass
self._lastGroupId = None
self._anonymous = anonymous
self._defaultOmeroGroup = None
Expand Down

0 comments on commit dbf00ab

Please sign in to comment.