#6248 HIGH Update.: Presence service is broken with recent NetworkManager

Zarro Boogs per Child bugtracker at laptop.org
Tue Jan 29 06:52:28 EST 2008


#6248: Presence service is broken with recent NetworkManager
------------------------------+---------------------------------------------
 Reporter:  marco             |       Owner:  Collabora
     Type:  defect            |      Status:  new      
 Priority:  high              |   Milestone:  Update.2 
Component:  presence-service  |     Version:           
 Keywords:                    |    Verified:  0        
 Blocking:                    |   Blockedby:           
------------------------------+---------------------------------------------
 I'm testing with 0.7.0. No buddies on the mesh view and no telepathy-
 gabble.log is created.

 The presence service log shows that the getDevices call is failing (the
 method has been renamed to GetDevices apparently). It looks like the
 network manager Dbus interface changed quite a bit, because getProperties
 is not working anymore either.

 As a quick workaround:

 {{{
 diff --git a/src/psutils.py b/src/psutils.py
 index 6b8ec95..ae705f4 100644
 --- a/src/psutils.py
 +++ b/src/psutils.py
 @@ -154,9 +154,8 @@ class IP4AddressMonitor(gobject.GObject):

          sys_bus = dbus.SystemBus()
          self._watch = sys_bus.watch_name_owner(NM_SERVICE,
 self._nm_owner_cb)
 -        if not sys_bus.name_has_owner(NM_SERVICE):
 -            addr = self._get_address_fallback()
 -            self._update_address(addr)
 +        addr = self._get_address_fallback()
 +        self._update_address(addr)

      def do_get_property(self, pspec):
          if pspec.name == "address":
 }}}

 Interesting comment in the code:

 {{{
 class IP4AddressMonitor(gobject.GObject):
     """This class, and direct buddy IPv4 address access, will go away
 quite soon"""
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/6248>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list