[Telepathy] Getting hold of a ProxyObject representing an object hosted over a D-Tube in Python
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Oct 9 03:24:34 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 09 Oct 2007 at 02:56:50 -0400, Andrew Clunis wrote:
> What is the proper way to get the bus_name for get_object() so I can get
> a ProxyObject representing an object hosted at the other end of a tube?
Use the GetDBusNames method and the DBusNamesChanged signal on the Tubes
channel to map between D-Bus tube unique names and Telepathy contact handles.
tubeconn.py in the Python examples directory uses these to get a mapping
between unique names and contact handles - we'll put something similar
in the actual library at some stage, but at the moment we'd rather not
freeze an API for it, hence it's just in the examples.
(These only work for multi-user tubes channels - in 1-1 tubes channels we
don't enforce any particular unique names for D-Bus tubes, and it's up to
the application what it uses. However, we recommend multi-user
tubes channels for most purposes, since these give you a chatroom to
discuss the collaborative application.)
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
iD8DBQFHC1biWSc8zVUw7HYRAv0+AKC1nbtIgV8yThLT8cdFV6CjcFDafgCgrbrV
i9H/h9vrJNjiXLIWx/NlmPY=
=Lc+C
-----END PGP SIGNATURE-----
More information about the Telepathy
mailing list