Python Dbus question
John (J5) Palmieri
johnp at redhat.com
Mon Dec 19 06:51:25 PST 2005
You would have to have some proxy which should be very easy to
auto-generate with python's excellent reflection support. But yes you
need an object that inherits from dbus.service.Object because that does
all the heavy lifting.
On Fri, 2005-12-16 at 13:49 +0100, Hermann Lacheiner wrote:
> Hi!
>
> I'm currently implementing an OSGI-like framework in Python (the aim is
> to have something like a rich client platform for Python in the end) and
> I want to integrate DBus into it.
> In OSGI there is a service registry, where objects can be registered and
> other bundles (plug-ins) installed in the framework can fetch them from
> the registry and use them.
> So I want to export objects registered in the service registry to DBus.
> But the problem is, that those objects should not inherit from
> dbus.service.Object, they should know nothing about DBus. There should
> be no dependency on DBus.
> Would that be possible to export a object after creation without being a
> child of dbus.object?
> Or do I have to create dynamically something like a Proxy-Class
> (inherits from dbus.service.Object and exports methods with a decorator)
> for each exported object in the service registry?
>
> Thank you very much for your help!
>
> Hermann
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
--
John (J5) Palmieri <johnp at redhat.com>
More information about the dbus
mailing list