[Sugar-devel] [PATCH sugar] Remove leftovers that try to sync friends in the PS #10736

Simon Schampijer simon at schampijer.de
Wed Mar 16 16:11:54 EDT 2011


Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/jarabe/model/friends.py |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/src/jarabe/model/friends.py b/src/jarabe/model/friends.py
index 192f683..f78d785 100644
--- a/src/jarabe/model/friends.py
+++ b/src/jarabe/model/friends.py
@@ -156,31 +156,6 @@ class Friends(gobject.GObject):
         cp.write(fileobject)
         fileobject.close()
 
-        self._sync_friends()
-
-    def _sync_friends(self):
-        # XXX: temporary hack
-        # remove this when the shell service has a D-Bus API for buddies
-
-        def friends_synced():
-            pass
-
-        def friends_synced_error(e):
-            logging.error('Error asking presence service to sync friends: %s',
-                e)
-
-        keys = []
-        for friend in self:
-            keys.append(friend.get_key())
-
-        bus = dbus.SessionBus()
-        ps = bus.get_object('org.laptop.Sugar.Presence',
-            '/org/laptop/Sugar/Presence')
-        psi = dbus.Interface(ps, 'org.laptop.Sugar.Presence')
-        psi.SyncFriends(keys,
-                reply_handler=friends_synced,
-                error_handler=friends_synced_error)
-
 
 def get_model():
     global _model
-- 
1.7.4



More information about the Sugar-devel mailing list