From a8571daac848cebb7c1822d4028d955f4a943f1b Mon Sep 17 00:00:00 2001 From: hpk Date: Tue, 19 Aug 2008 23:47:09 +0200 Subject: [PATCH] [svn r57481] fix a few things, seems to work again. --HG-- branch : trunk --- py/path/gateway/channeltest.py | 2 +- py/path/gateway/channeltest2.py | 3 ++- py/path/gateway/remotepath.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/py/path/gateway/channeltest.py b/py/path/gateway/channeltest.py index 07581ebf5..9d77ef01f 100644 --- a/py/path/gateway/channeltest.py +++ b/py/path/gateway/channeltest.py @@ -25,7 +25,7 @@ class PathServer: def command_GET(self, id, spec): path = self.C2P[id] - self.channel.send(path.get(spec)) + self.channel.send(path._getbyspec(spec)) def command_READ(self, id): path = self.C2P[id] diff --git a/py/path/gateway/channeltest2.py b/py/path/gateway/channeltest2.py index 79fd2a59a..f15ac94d1 100644 --- a/py/path/gateway/channeltest2.py +++ b/py/path/gateway/channeltest2.py @@ -13,7 +13,8 @@ channel.send(srv.p2c(py.path.local("/tmp"))) #gw = py.execnet.SshGateway('codespeak.net') gw = py.execnet.PopenGateway() -c = gw.remote_exec(SRC) +gw.remote_init_threads(5) +c = gw.remote_exec(SRC, stdout=py.std.sys.stdout, stderr=py.std.sys.stderr) subchannel = gw._channelfactory.new() c.send(subchannel) diff --git a/py/path/gateway/remotepath.py b/py/path/gateway/remotepath.py index 5f5e538be..a8d8d8529 100644 --- a/py/path/gateway/remotepath.py +++ b/py/path/gateway/remotepath.py @@ -33,7 +33,7 @@ class RemotePath(common.FSPathBase): self._channel.send(('JOIN', self._id, id) + args) return RemotePath(self._channel, id) - def get(self, spec): + def _getbyspec(self, spec): parts = spec.split(',') ask = [x for x in parts if x not in self._specs] if ask: