summaryrefslogtreecommitdiff
path: root/src/leap/soledad
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/soledad')
-rw-r--r--src/leap/soledad/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py
index 1ef18174..2a7b945e 100644
--- a/src/leap/soledad/__init__.py
+++ b/src/leap/soledad/__init__.py
@@ -30,6 +30,7 @@ import os
import string
import binascii
import logging
+import urlparse
try:
import simplejson as json
except ImportError:
@@ -417,7 +418,7 @@ class Soledad(object):
Return an instance of the shared recovery database object.
"""
return SoledadSharedDatabase.open_database(
- self.server_url,
+ urlparse.urljoin(self.server_url, 'shared'),
False, # TODO: eliminate need to create db here.
creds=self._creds)
@@ -721,7 +722,9 @@ class Soledad(object):
performed.
@rtype: str
"""
- local_gen = self._db.sync(self.server_url, creds=self._creds, autocreate=True)
+ local_gen = self._db.sync(
+ urlparse.urljoin(self.server_url, 'user-%s' % self._uuid),
+ creds=self._creds, autocreate=True)
events.signal(events.events_pb2.SOLEDAD_DONE_DATA_SYNC, self._uuid)
return local_gen