Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2010-03-16 10:37:15 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-20 13:02:26 (GMT)
commit558a1cfc88f275ce70307f13ff7ee68f08a281de (patch)
treed77a068e8df9d43e57df0767ad3d8b9adb092ba0
parent5b698a0a9d67b20f28f191632a8998318b5bba97 (diff)
Set the resource param for gabble connections
-rw-r--r--src/jarabe/model/neighborhood.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index b421586..832d55b 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -154,6 +154,7 @@ class Neighborhood(gobject.GObject):
logging.debug('meec %r', request)
def _ensure_link_local_account(self, account_manager, accounts):
+ # TODO: Is this the better way to check for an account?
for account in accounts:
if 'salut' in account:
return
@@ -180,6 +181,7 @@ class Neighborhood(gobject.GObject):
accounts.append(account)
def _ensure_server_account(self, account_manager, accounts):
+ # TODO: Is this the better way to check for an account?
for account in accounts:
if 'gabble' in account:
return
@@ -191,6 +193,7 @@ class Neighborhood(gobject.GObject):
'account': '***',
'password': '***',
'server': 'talk.google.com',
+ 'resource': 'sugar',
}
properties = {