Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/presence/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/presence/util.py')
-rw-r--r--src/sugar/presence/util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sugar/presence/util.py b/src/sugar/presence/util.py
index 30346c1..361ee16 100644
--- a/src/sugar/presence/util.py
+++ b/src/sugar/presence/util.py
@@ -50,6 +50,12 @@ class ConnectionManager(object):
def get_connections_per_account(self):
return self._connections_per_account
+ def get_account_for_connection(self, connection_path):
+ for account_path, connection in self._connections_per_account.items():
+ if connection.object_path == connection_path:
+ return account_path
+ return None
+
_connection_manager = None
def get_connection_manager():