#4883 HIGH Update.: presence service get_preferred_connection() returns None when no connection is present

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 13 15:00:12 EST 2007


#4883: presence service get_preferred_connection() returns None when no connection
is present
------------------------------+---------------------------------------------
 Reporter:  erikos            |       Owner:  daf     
     Type:  defect            |      Status:  new     
 Priority:  high              |   Milestone:  Update.2
Component:  presence-service  |     Version:          
 Keywords:  Update.1?         |    Verified:  0       
------------------------------+---------------------------------------------
 Attached is the log of AcousticMeasure taken on 258 when launching the
 activity when there is no connection.

 Activities as been working around this issue like this.

 {{{
 # Get the Presence Service
         self.pservice = presenceservice.get_instance()
         try:
             name, path = self.pservice.get_preferred_connection()
             self.tp_conn_name = name
             self.tp_conn_path = path
             self.conn = telepathy.client.Connection(name, path)
         except TypeError:
             _logger.debug('Offline')
 }}}

 Anything else we could do here to not duplicate code? Or has this been
 handled already by the latest sharing code?

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



More information about the Bugs mailing list