#4819 NORM Never A: Can't get buddy from handle if not initiator
Zarro Boogs per Child
bugtracker at laptop.org
Mon Nov 12 12:15:32 EST 2007
#4819: Can't get buddy from handle if not initiator
------------------------------+---------------------------------------------
Reporter: rorrim | Owner: morgs
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: presence-service | Version:
Keywords: | Verified: 0
------------------------------+---------------------------------------------
On my activities, there is a tube method StatusUpdate that gets called by
each participants, and received by all. A particular example;
---
@signal(dbus_interface=IFACE, signature='sbu')
def StatusUpdate (self, status, clock_running, ellapsed_time):
""" signal a reshufle, possibly with a new image """
logger.debug("Status Update to %s, %s, %i" % (status,
str(clock_running), ellapsed_time))
---
def status_update_cb (self, status, clock_running, ellapsed_time,
sender=None):
cs_handle = self.tube.bus_name_to_handle[sender]
buddy = self._shared_activity.get_buddy_by_handle(cs_handle)
----
The initiator gets the StatusUpdate from some connected buddy and all goes
well.
The non-initiator buddy gets a StatusUpdate from the initiator and
cs_handle resolves to a number (multiple calls give the same number, so
its consistent) but get_buddy_by_handle returns None. which is not what I
expected or what I had working using the old hack from HelloMesh, that has
now been replaced by this.
I'm on a jhbuild updated 2007/11/12, at 13:37 GMT.
--
Ticket URL: <http://dev.laptop.org/ticket/4819>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list