[PATCH] Add DBusServer wrapper for dbus-python

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jul 2 03:59:55 PDT 2008


On Wed, 02 Jul 2008 at 08:39:16 +0800, Huang Peng wrote:
> I implemented DBusServer wrapper for dbus-python. I need it for my new
> project. This patch also includes a demo code to show how to use dbus server.
> Could you test it and include it to upstream? Thanks.

Sorry, I haven't had a chance to review your patch in detail (I've been
working on redesigning the Telepathy APIs for several weeks). I think
exposing this functionality through dbus.lowlevel would be a good idea.
I'll try to find time to do some review soon.

I don't think it should get a high-level (object-model) API yet, if at all
(disagreeing with J5 here...) since anything that needs a DBusServer is
necessarily fairly specialized, and probably ought to be using the
low-level (message passing) interfaces (or at least have the opportunity
to use them).

In particular, I don't think it's reasonable to assume that every
DBusServer exports exactly one (equivalent of a) dbus.service.Object.

Multiple dbus.service.Object instances can be attached to any
dbus.connection.Connection, so providing a dbus.connection.Connection
(or even a DBusServer-user-defined subclass of Connection) per client
connected to the server is probably the way forward. That Connection could
also be used with the low-level message-passing APIs from dbus.lowlevel.

    Simon


More information about the dbus mailing list