From 1b01c9c3c05fdd42327406161bd5c51e05fbca19 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 28 Oct 2008 19:52:04 +0000 Subject: remove non working wrapper class to add a (unneeded) .get() call to eConsoleAppContainers.. so now all external plugins must remove this .get() calls... example: cont = eConsoleAppContainer() cont.appClosed.append(cb_func) # old was cont.appClosed.get().append(cb_func) --- lib/python/Components/Network.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/python/Components/Network.py') diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index ecc54787..9b0898e0 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -332,13 +332,13 @@ class Network: def getLinkState(self,iface,callback): self.dataAvail = callback cmd = self.ethtool_bin + " " + iface - self.container.appClosed.get().append(self.cmdFinished) - self.container.dataAvail.get().append(callback) + self.container.appClosed.append(self.cmdFinished) + self.container.dataAvail.append(callback) self.container.execute(cmd) def cmdFinished(self,retval): - self.container.appClosed.get().remove(self.cmdFinished) - self.container.dataAvail.get().remove(self.dataAvail) + self.container.appClosed.remove(self.cmdFinished) + self.container.dataAvail.remove(self.dataAvail) def stopContainer(self): self.container.kill() -- cgit v1.2.3