Task #11928 (closed)
service.close(SERVICE_OPTS)
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | critical | Milestone: | 5.1.0 |
Component: | OmeroPy | Version: | n.a. |
Keywords: | n.a. | Cc: | python-team@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Need to be able to pass conn.SERVICE_OPTS to stateful service.close() method,
but the ProxyObjectWrapper? close() method won't allow any extra args.
def close (self): """ Closes the underlaying service, so next call to the proxy will create a new instance of it. """ if self._obj and isinstance(self._obj, omero.api.StatefulServiceInterfacePrx): self._obj.close() self._obj = None
Need def close (self, *args, **kwargs): and for these to be passed to the underlying _obj.close(*args, **kwargs)
Change History (4)
comment:1 Changed 10 years ago by wmoore
comment:2 Changed 10 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 10 years ago by Will Moore <will@…>
(In [c9e276be337d350aef309679fdd2fc7c9a72a861/ome.git] on branch develop) gatewaytest createFileAnn uses SERVICE_OPTS. See #11928
comment:4 Changed 10 years ago by Will Moore <will@…>
(In [29aee7fec0fd294e9637d6d3b724146e6692cb53/ome.git] on branch develop) Add kwargs to Proxy.close() See #11928
Also need to add SERVICE_OPTS to conn.createFileAnnfromLocalFile() and conn.createOriginalFileFromLocalFile().
Also need tests to check that these work (creating file in non-default group).