Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11928 (closed)

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

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

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).

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

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63679 sec.)

We're Hiring!