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

John (J5) Palmieri johnp at redhat.com
Wed May 30 12:52:02 PDT 2007


free to commit

On Tue, 2007-05-29 at 15:35 +0100, Simon McVittie wrote:
> -----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-----
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus



More information about the dbus mailing list