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/Ipkg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/python/Components/Ipkg.py') diff --git a/lib/python/Components/Ipkg.py b/lib/python/Components/Ipkg.py index 79389b4d..31889bcf 100644 --- a/lib/python/Components/Ipkg.py +++ b/lib/python/Components/Ipkg.py @@ -31,8 +31,8 @@ class IpkgComponent: def runCmd(self, cmd): print "executing", self.ipkg, cmd - self.cmd.appClosed.get().append(self.cmdFinished) - self.cmd.dataAvail.get().append(self.cmdData) + self.cmd.appClosed.append(self.cmdFinished) + self.cmd.dataAvail.append(self.cmdData) if self.cmd.execute(self.ipkg + " " + cmd): self.cmdFinished(-1) @@ -56,8 +56,8 @@ class IpkgComponent: def cmdFinished(self, retval): self.callCallbacks(self.EVENT_DONE) - self.cmd.appClosed.get().remove(self.cmdFinished) - self.cmd.dataAvail.get().remove(self.cmdData) + self.cmd.appClosed.remove(self.cmdFinished) + self.cmd.dataAvail.remove(self.cmdData) def cmdData(self, data): print "data:", data -- cgit v1.2.3