Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/presence
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-07-29 16:26:14 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-07-29 16:26:14 (GMT)
commitf0b78ef406bffb5aa4a22102f7065d477ad1046c (patch)
tree6f0faf8c112d2fe780220bee3b69dc63f92bd133 /src/sugar/presence
parentfe6d1c114c928e7df2b85389d6a577afc6d03395 (diff)
Add the tags property to the buddy model
Diffstat (limited to 'src/sugar/presence')
-rw-r--r--src/sugar/presence/buddy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sugar/presence/buddy.py b/src/sugar/presence/buddy.py
index fab23d2..57cd710 100644
--- a/src/sugar/presence/buddy.py
+++ b/src/sugar/presence/buddy.py
@@ -58,7 +58,8 @@ class Buddy(gobject.GObject):
'color' : (str, None, None, None, gobject.PARAM_READABLE),
'current-activity' : (object, None, None, gobject.PARAM_READABLE),
'owner' : (bool, None, None, False, gobject.PARAM_READABLE),
- 'ip4-address' : (str, None, None, None, gobject.PARAM_READABLE)
+ 'ip4-address' : (str, None, None, None, gobject.PARAM_READABLE),
+ 'tags' : (str, None, None, None, gobject.PARAM_READABLE),
}
_PRESENCE_SERVICE = "org.laptop.Sugar.Presence"
@@ -124,6 +125,8 @@ class Buddy(gobject.GObject):
return self._properties["nick"]
elif pspec.name == "color":
return self._properties["color"]
+ elif pspec.name == "tags":
+ return self._properties["tags"]
elif pspec.name == "current-activity":
if not self._properties.has_key("current-activity"):
return None