def _rescan(self): locator = Pyro.naming.NameServerLocator() ns = locator.getNS() for name, isobject in ns.list(":Client"): if isobject: self._clients[name] = remoteclient.get_remote(name) self.add_completion_scope("host", self._clients.keys())
def rmove(self, src, dst): from pycopia.remote import Client agent = Client.get_remote(self.name.split(".")[0]) Client.remote_copy(agent, src, dst) agent.unlink(src)
def get_remote(self): """Returns a remote control object to interact with this device.""" from pycopia.remote import Client return Client.get_remote(self.name.split(".")[0])