Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-03-16 19:46:10 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-03-22 21:11:13 (GMT)
commit7368db1c5f807211addbc52acebaa80357490a71 (patch)
tree68c7a014b4c0f9e7ed4ea7067ad9ee4eae25ccc0 /src
parent86899b424e3e04dbbb6a6d681ef5a7fe2ac1dba9 (diff)
Remove leftovers that try to sync friends in the PS OLPC #10736
The shell should not update the PS anymore at all. A side effect of this fix is that this avoids breaking if sugar-presence-service doesn't start (e.g. because of OLPC #10739). Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/model/friends.py25
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