setting the group on the client object/session?
Posted: Tue Feb 17, 2015 10:52 am
Hi Josh
I've looked at the code from here : https://github.com/openmicroscopy/openm ... ry.py#L235
I'm trying to set the session to use an already setup public_group - how do I do that?
The below code works apart from setting the group bit:
It would also be great to have an example of uploading an image using soft linking via this api?
Cheers
Jonathan.
I've looked at the code from here : https://github.com/openmicroscopy/openm ... ry.py#L235
I'm trying to set the session to use an already setup public_group - how do I do that?
The below code works apart from setting the group bit:
- Code: Select all
print "initiating ImageImport object"
self.root = omero.client(omeroHost) # ok because adds self
#self.__clients.add(self.root)
self.root.setAgent("OMERO.py.root_test")
self.root.createSession("user", "pass")
group=self.group_and_name("public_group")
self.root.ctx["omero.group"]=group
print "user="+str(self.root)
It would also be great to have an example of uploading an image using soft linking via this api?
Cheers
Jonathan.