add kill to Console
authoracid-burn <acidburn@opendreambox.org>
Sun, 15 Feb 2009 19:07:57 +0000 (20:07 +0100)
committeracid-burn <acidburn@opendreambox.org>
Sun, 15 Feb 2009 19:07:57 +0000 (20:07 +0100)
lib/python/Components/Console.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f1f3fd9..7efdf64
@@ -55,3 +55,8 @@ class Console(object):
                if self.callbacks[name]:
                        self.callbacks[name](data,retval,extra_args)
                del self.callbacks[name]
                if self.callbacks[name]:
                        self.callbacks[name](data,retval,extra_args)
                del self.callbacks[name]
+
+       def kill(self,name):
+               if self.appContainers.has_key(name):
+                       print "[Console] killing: ",self.appContainers[name]
+                       self.appContainers[name].kill()