Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 21:46:27 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-06-11 21:46:27 (GMT)
commitef8132d1ac31469ea0a046586b3d05d9afbccffc (patch)
tree0a7573ce27f27af0b92955092a587f187de965fe
parent5994591421d39d7cd70aa9709afd8d01ad854eb3 (diff)
presenceservice: log a warning if the connection is missing one of the interfaces we want
-rw-r--r--src/presenceservice.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/presenceservice.py b/src/presenceservice.py
index 69c6a2f..9ef749f 100644
--- a/src/presenceservice.py
+++ b/src/presenceservice.py
@@ -170,6 +170,9 @@ class PresenceService(ExportedGObject):
'ActivityPropertiesChanged',
activity_properties_changed)
self._conn_matches[conn].append(m)
+ else:
+ _logger.warning('Connection %s does not support OLPC activity '
+ 'properties', conn.object_path)
if CONN_INTERFACE_BUDDY_INFO in conn:
def buddy_activities_changed(contact, activities):
@@ -195,6 +198,9 @@ class PresenceService(ExportedGObject):
m = conn[CONN_INTERFACE_BUDDY_INFO].connect_to_signal(
'CurrentActivityChanged', buddy_curact_changed)
self._conn_matches[conn].append(m)
+ else:
+ _logger.warning('Connection %s does not support OLPC buddy info',
+ conn.object_path)
if CONN_INTERFACE_AVATARS in conn:
def avatar_updated(contact, avatar_token):
@@ -202,6 +208,9 @@ class PresenceService(ExportedGObject):
m = conn[CONN_INTERFACE_AVATARS].connect_to_signal('AvatarUpdated',
avatar_updated)
self._conn_matches[conn].append(m)
+ else:
+ _logger.warning('Connection %s does not support avatars',
+ conn.object_path)
if CONN_INTERFACE_ALIASING in conn:
def aliases_changed(aliases):
@@ -211,6 +220,9 @@ class PresenceService(ExportedGObject):
m = conn[CONN_INTERFACE_ALIASING].connect_to_signal(
'AliasesChanged', aliases_changed)
self._conn_matches[conn].append(m)
+ else:
+ _logger.warning('Connection %s does not support aliasing',
+ conn.object_path)
def _tp_disconnected(self, tp):
if tp.self_handle is not None: