Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-08 14:45:12 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2007-03-08 14:45:12 (GMT)
commit2262b5fd4931fd20e5cd8e5732e68383b4b18786 (patch)
tree3cdc24ceea4da06d89b46e537a1bd9a4018c3c42 /services
parentabf60c1c89142e27790c5baac8447cf8d6d97761 (diff)
update nick when receive AliasChanged signal
Diffstat (limited to 'services')
-rw-r--r--services/presence2/presenceservice.py2
-rw-r--r--services/presence2/server_plugin.py9
2 files changed, 4 insertions, 7 deletions
diff --git a/services/presence2/presenceservice.py b/services/presence2/presenceservice.py
index afccbbd..4ad780d 100644
--- a/services/presence2/presenceservice.py
+++ b/services/presence2/presenceservice.py
@@ -134,7 +134,7 @@ class PresenceService(dbus.service.Object):
buddy = self._handles_buddies[tp].get(handle)
if buddy:
buddy.set_properties(prop)
- print "Buddy %s properties updated" % buddy.props.key
+ #print "Buddy %s properties updated" % buddy.props.key
def _new_activity(self, activity_id, tp):
objid = self._get_next_object_id()
diff --git a/services/presence2/server_plugin.py b/services/presence2/server_plugin.py
index 935da23..bd15bcd 100644
--- a/services/presence2/server_plugin.py
+++ b/services/presence2/server_plugin.py
@@ -218,9 +218,7 @@ class ServerPlugin(gobject.GObject):
self._conn[CONN_INTERFACE_AVATARS].connect_to_signal('AvatarUpdated', self._avatar_updated_cb)
- # FIXME: we need to use PEP to store the nick. We aren't notified when
- # vcards are changed
- #self._conn[CONN_INTERFACE_ALIASING].connect_to_signal('AliasesChanged', self._alias_changed_cb)
+ self._conn[CONN_INTERFACE_ALIASING].connect_to_signal('AliasesChanged', self._alias_changed_cb)
try:
self._set_self_buddy_info()
@@ -409,9 +407,8 @@ class ServerPlugin(gobject.GObject):
def _alias_changed_cb(self, aliases):
for handle, alias in aliases:
- nick = self._conn[CONN_INTERFACE_ALIASING].RequestAliases([handle])[0]
- prop = {'nick': nick}
- print "Buddy %s alias changed to %s" % (handle, nick)
+ prop = {'nick': alias}
+ #print "Buddy %s alias changed to %s" % (handle, alias)
self._properties_changed_cb(handle, prop)
def _properties_changed_cb(self, contact, properties):