** Branch linked: lp:~thekorn/+junk/test_dbus_direct_signal
--
Add event notification and subscription system
https://bugs.launchpad.net/bugs/488967
You received this bug notification because you are a member of
Zeitgeist-Engine, which is the registrant for Zeitgeist Framework.
Status in
In the attached branch I tried to put together a sample dbus service
which *should* send directed signals, but somehow it is not working as I
expect it to work.
There are two scripts, service.py which starts the service, and
client.py (0|1), the client. starting the client with argument '1' means
maybe this screencasts help to understand whyt I mean ;)
** Attachment added: out.ogv
http://launchpadlibrarian.net/36195528/out.ogv
--
Add event notification and subscription system
https://bugs.launchpad.net/bugs/488967
You received this bug notification because you are a member of
Cool that you did this test Markus! I am a bit troubled by the results
though...
I fear that signals are by definition always broadcasted. We may be able
to work around this by setting a match rule on each signal connection on
the client side, but I am not sure... Something like adding a named
Yeah, I agree you way is the way to go (I'm just wondering why the
Tracker guys didn't think of this, as I had a talk with Ivan at
Bolzano and he told me they also have problems with signals and that
their not optimal solution was to send a different signal for every
type of data).
Unrelated to
I think I read somewhere in the Tracker changelogs that they committed a
fix for this, but maybe I mistook a normal comment on the matter as a
real committed fix...
Regarding 0.3 status I think we should ship 0.3.0 without it. There's
nothing stopping us having 0.3.1 next week already of we have
I am looking into the directed signals approach, and from a look at the
DBus spec this should be possible. If we can somehow create our own
dbus.lowlevel.SignalMessage then we can call
set_destination(unique_name) on that. See
http://dbus.freedesktop.org/doc/dbus-python/api/. Alse see
Ok. I think I know how to do this now. I just need to find the time to
actually write the code :-)
Look at the nested emit_signal() method here:
http://dbus.freedesktop.org/doc/dbus-python/api/dbus.decorators-
pysrc.html#signal
--
Add event notification and subscription system
If we want to re-instate the old system it is a matter of a few lines.
But that would be a step back IMHO. And writing a full template based
notification system could not be done in two hours by one. It's not a
huge task, but definitely more than two hours :-)
Besides, I really think we should
9 matches
Mail list logo