From 831c4c6828a94b48e28493839c7d2a23eb560515 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 16 Mar 2007 12:18:54 -0400 Subject: [PATCH] Fix get of current-activity property; should be a string --- services/presence2/buddy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/presence2/buddy.py b/services/presence2/buddy.py index edef393d..4b6031d4 100644 --- a/services/presence2/buddy.py +++ b/services/presence2/buddy.py @@ -102,7 +102,7 @@ class Buddy(DBusGObject): return None if not self._activities.has_key(self._current_activity): return None - return self._activities[self._current_activity] + return self._current_activity elif pspec.name == "valid": return self._valid elif pspec.name == "owner": @@ -336,7 +336,8 @@ class Owner(Buddy): def _cur_activity_changed_cb(self, activity_id): if not self._activities.has_key(activity_id): - return + # This activity is local-only + activity_id = None props = {'current-activity': activity_id} self.set_properties(props)