[PATCH][python] dbus.service: include child nodes in introspection

Simon McVittie simon.mcvittie at collabora.co.uk
Tue May 29 07:35:48 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This requires the _dbus_bindings patch I just posted to the list.

- ---
 dbus/service.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dbus/service.py b/dbus/service.py
index 9d3dc3f..be30b9b 100644
- --- a/dbus/service.py
+++ b/dbus/service.py
@@ -530,6 +530,10 @@ class Object(Interface):
 
             reflection_data += '  </interface>\n'
 
+        for name in self._connection.list_exported_child_objects(
+                self._object_path):
+            reflection_data += '  <node name="%s"/>\n' % name
+
         reflection_data += '</node>\n'
 
         return reflection_data
- -- 
1.5.2-rc3.GIT

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFGXDpEWSc8zVUw7HYRArZPAKCh1mfOjSNSAXy+qRSP+CHqlSyylQCfU7Jb
4flqmTr/yau0+mYEX6tb31E=
=NSsV
-----END PGP SIGNATURE-----


More information about the dbus mailing list