sugar3.presence.sugartubeconn module

Subclass of TubeConnection that converts handles to Sugar Buddies

STABLE.

class sugar3.presence.sugartubeconn.SugarTubeConnection(conn, tubes_iface, tube_id, address=None, group_iface=None, mainloop=None)

Bases: sugar3.presence.tubeconn.TubeConnection

Subclass of TubeConnection that converts handles to Sugar Buddies

get_buddy(cs_handle)

Retrieve a Buddy object given a telepathy handle.

cs_handle: A channel-specific CONTACT type handle. returns: sugar3.presence Buddy object or None