From 2866d3c4c92b2443cab3bb64c147c45f6909f47d Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 20 Apr 2007 12:40:53 -0400 Subject: [PATCH] Convert more string-named properties to var-named --- services/presence/buddy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/presence/buddy.py b/services/presence/buddy.py index 0f4fef48..0be877cb 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)