summaryrefslogtreecommitdiff
path: root/test/test-service.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-08-01 18:34:38 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-08-01 18:34:38 +0100
commit159319390404ed58406dba5a42d931740660af78 (patch)
tree5263468533c02b1b83b3f7b60659048f4b152efc /test/test-service.py
parent5aef31b429ac0c14312265e166aeeeda91b3f8ac (diff)
downloaddbus-python-159319390404ed58406dba5a42d931740660af78.tar.gz
Fix introspection on objects with more than one connection or more than one object path (bugs.fd.o #11794)
Diffstat (limited to 'test/test-service.py')
-rwxr-xr-xtest/test-service.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-service.py b/test/test-service.py
index ef4efe2..4488eb1 100755
--- a/test/test-service.py
+++ b/test/test-service.py
@@ -111,10 +111,18 @@ class Fallback(dbus.service.FallbackObject):
logger.info('Emitting %s from abs %r', signal, path)
sig('I am', 'a deprecated fallback', path=path)
+class MultiPathObject(dbus.service.Object):
+ SUPPORTS_MULTIPLE_OBJECT_PATHS = True
+
class TestObject(dbus.service.Object, TestInterface):
def __init__(self, bus_name, object_path=OBJECT):
dbus.service.Object.__init__(self, bus_name, object_path)
self._removable = RemovableObject()
+ self._multi = MultiPathObject(bus_name, object_path + '/Multi1')
+ self._multi.add_to_connection(bus_name.get_bus(),
+ object_path + '/Multi2')
+ self._multi.add_to_connection(bus_name.get_bus(),
+ object_path + '/Multi2/3')
""" Echo whatever is sent
"""