aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dbus
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-05-05 18:00:12 +0200
committerdavemds <dave@gurumeditation.it>2013-05-05 18:00:12 +0200
commit73d49c134aa87506809b97cbdf346fdd449d3b3b (patch)
tree1ec642fe12ab6024548581c3384704d0733f4eb0 /examples/dbus
parentPython-EFL: espionage: double-clink on a property to fetch the value (diff)
downloadpython-efl-73d49c134aa87506809b97cbdf346fdd449d3b3b.tar.gz
Python-EFL: espionage: add an option to hide the internal dbus introspection interfaces.
Diffstat (limited to 'examples/dbus')
-rwxr-xr-xexamples/dbus/test_dbus_spy.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/dbus/test_dbus_spy.py b/examples/dbus/test_dbus_spy.py
index d10d318..fe3ce21 100755
--- a/examples/dbus/test_dbus_spy.py
+++ b/examples/dbus/test_dbus_spy.py
@@ -22,10 +22,17 @@ from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass
from efl.dbus_mainloop import DBusEcoreMainLoop
+class Options(object):
+ """class to contain application options"""
+ def __init__(self):
+ self.hide_introspect_stuff = True
+
+
### connect to session and system buses, and set session as the current one
session_bus = dbus.SessionBus(mainloop=DBusEcoreMainLoop())
system_bus = dbus.SystemBus(mainloop=DBusEcoreMainLoop())
bus = session_bus
+options = Options()
### Classes to describe various DBus nodes
@@ -356,6 +363,9 @@ class DetailList(Genlist):
# interfaces
for iface in obj.interfaces:
+ if options.hide_introspect_stuff and \
+ iface.name.startswith("org.freedesktop.DBus"):
+ continue
iface_item = self.item_append(self.itc, iface,
parent_item=obj_item,
flags=elm.ELM_GENLIST_ITEM_TREE)