Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/presence/buddy.py
diff options
context:
space:
mode:
Diffstat (limited to 'services/presence/buddy.py')
-rw-r--r--services/presence/buddy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/presence/buddy.py b/services/presence/buddy.py
index 0f4fef4..0be877c 100644
--- a/services/presence/buddy.py
+++ b/services/presence/buddy.py
@@ -91,7 +91,7 @@ class Buddy(DBusGObject):
self._nick = None
self._color = None
- if not kwargs.get("key"):
+ if not kwargs.get(_PROP_KEY):
raise ValueError("key required")
_ALLOWED_INIT_PROPS = [_PROP_NICK, _PROP_KEY, _PROP_ICON, _PROP_CURACT, _PROP_COLOR]
@@ -380,7 +380,7 @@ class ShellOwner(GenericOwner):
if not self._activities.has_key(activity_id):
# This activity is local-only
activity_id = None
- props = {'current-activity': activity_id}
+ props = {_PROP_CURACT: activity_id}
self.set_properties(props)