Kaydet (Commit) bb40247c authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

List running methods

üst 6df0a961
2009-06-25 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: listRunning(all=True) method for listing running method calls
2009-06-11 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Cancel method
......@@ -176,6 +176,18 @@ class Link:
except dbus.DBusException, exception:
return 0
def listRunning(self, all=True):
methods = []
obj = self.bus.get_object(self.address, '/', introspect=False)
methods = obj.listRunning(all, dbus_interface=self.interface)
except dbus.DBusException, exception:
return methods
for index, method in enumerate(methods):
if method.startswith("%s." % self.interface):
methods[index] = method[len("%s." % self.interface):]
return methods
def listenSignals(self, model, handler):
def sigHandler(*args, **kwargs):
if "/package/" not in kwargs["path"]:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment