Deleting an Object
Posted: Tue Apr 24, 2012 1:21 pm
So far I have deleted objects through scripts. Mainly, I create a delete service using the connection and then I use the client object on the callback methods to monitor object deletion. Very straightforward.
Now I want to implement a method within pyslid. The main issue I have is that I create the connection in the following fashion
meaning I don't create a client. So I have two questions. Either I think will provide me with a solution
1) is it possible to delete an object without a client object? is the callback strictly neccesary?
2) is it possible to get the client from the connection?
thanks
ivan
Now I want to implement a method within pyslid. The main issue I have is that I create the connection in the following fashion
- Code: Select all
def connect( server, port, username, password ):
'''
Helper method that connects to an OMERO.searcher server.
@param server
@param port
@param username
@param password
@returns connection
'''
try:
conn = BlitzGateway( username, password, host=server, port=int(port))
conn.connect()
return conn
except:
return None
meaning I don't create a client. So I have two questions. Either I think will provide me with a solution
1) is it possible to delete an object without a client object? is the callback strictly neccesary?
2) is it possible to get the client from the connection?
thanks
ivan