[svn r63869] * moving execnet events to become api plugin calls.

* defining Execnet hooks in an explicit API

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-08 19:50:14 +02:00
parent 92a06c3787
commit 66c64e6b97
8 changed files with 79 additions and 70 deletions

View File

@@ -11,12 +11,12 @@ class ExecnetcleanupPlugin:
if self._debug:
print "[execnetcleanup %0x] %s %s" %(id(self), msg, args)
def pyevent__gateway_init(self, gateway):
def pyexecnet_gateway_init(self, gateway):
self.trace("init", gateway)
if self._gateways is not None:
self._gateways.append(gateway)
def pyevent__gateway_exit(self, gateway):
def pyexecnet_gateway_exit(self, gateway):
self.trace("exit", gateway)
if self._gateways is not None:
self._gateways.remove(gateway)