Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/presence
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-24 16:48:43 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-05-24 16:48:43 (GMT)
commit2b9cb92953f59841beba5d3c0336a86248d64bf0 (patch)
tree1bf349d841398a79cdb6f7a59d8c64f413ddd00b /sugar/presence
parent161605ccb1633c2d69ac89f47e4b7b5a4418beff (diff)
Revert "sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle()"
This reverts commit c6ac2873c881455bc0ba1aa6befae9bd44a1d1e4 because the necessary API isn't committed in PS yet.
Diffstat (limited to 'sugar/presence')
-rw-r--r--sugar/presence/presenceservice.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/sugar/presence/presenceservice.py b/sugar/presence/presenceservice.py
index a0b60ee..4e33272 100644
--- a/sugar/presence/presenceservice.py
+++ b/sugar/presence/presenceservice.py
@@ -312,32 +312,6 @@ class PresenceService(gobject.GObject):
return None
return self._new_object(buddy_op)
- def get_buddy_by_telepathy_handle(self, tp_conn_name, tp_conn_path,
- handle):
- """Retrieve single Buddy object for the given public key
-
- :Parameters:
- `tp_conn_name` : str
- The well-known bus name of a Telepathy connection
- `tp_conn_path` : dbus.ObjectPath
- The object path of the Telepathy connection
- `handle` : int or long
- The handle of a Telepathy contact on that connection,
- of type HANDLE_TYPE_CONTACT. This may not be a
- channel-specific handle.
- :Returns: the Buddy object, or None if the buddy is not found
- """
- try:
- buddy_op = self._ps.GetBuddyByTelepathyHandle(tp_conn_name,
- tp_conn_path,
- handle)
- except dbus.exceptions.DBusException, err:
- _logger.warn('Unable to retrieve buddy handle for handle %u at '
- 'conn %s:%s from presence service: %s',
- handle, tp_conn_name, tp_conn_path, err)
- return None
- return self._new_object(buddy_op)
-
def get_owner(self):
"""Retrieves the laptop "owner" Buddy object."""
try: