OMEROweb connection/session
Posted: Tue Mar 01, 2011 7:43 pm
If a have a connection, is there a way to retrieve the session from the connection?
The OME community
https://www.openmicroscopy.org/community/
https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=627
def context( request, query ):
conn = getBlitzConnection( request )
conn.c
conn = getBlitzConnection( request )
client = conn.c
session = conn.getSession()
gateway = session.createGateway()
resources = session.sharedResources()
gateway = session.createGateway()
File
"/usr0/local/omero.server/OMERO.server-Beta-4.2.1/lib/python/omero_model_SessionI.py",
line 520, in __getattr__
raise AttributeError("'%s' object has no attribute '%s' or '%s'" % (self.__class__.__name__, getter, questn))
AttributeError: 'SessionI' object has no attribute 'getCreateGateway' or 'isCreateGateway'
resources = session.sharedResources()
File
"/usr0/local/omero.server/OMERO.server-Beta-4.2.1/lib/python/omero_model_SessionI.py",
line 520, in __getattr__
raise AttributeError("'%s' object has no attribute '%s' or '%s'" % (self.__class__.__name__, getter, questn))
AttributeError: 'SessionI' object has no attribute 'getSharedResources' or 'isSharedResources'