From d92f1d1840d28ee6c2058556b047db75ed737f77 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 2 Mar 2017 13:58:49 -0300 Subject: [bug] fix shared database initialization --- client/src/leap/soledad/client/_secrets/storage.py | 3 +-- client/src/leap/soledad/client/shared_db.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'client') diff --git a/client/src/leap/soledad/client/_secrets/storage.py b/client/src/leap/soledad/client/_secrets/storage.py index 89b44266..056c4322 100644 --- a/client/src/leap/soledad/client/_secrets/storage.py +++ b/client/src/leap/soledad/client/_secrets/storage.py @@ -72,9 +72,8 @@ class SecretsStorage(UserDataMixin): def _init_shared_db(self): url = urlparse.urljoin(self._soledad.server_url, SHARED_DB_NAME) - uuid = self._soledad.uuid creds = self._creds - db = SoledadSharedDatabase.open_database(url, uuid, creds) + db = SoledadSharedDatabase.open_database(url, creds) return db def _remote_doc_id(self): diff --git a/client/src/leap/soledad/client/shared_db.py b/client/src/leap/soledad/client/shared_db.py index b429d2cb..4f70c74b 100644 --- a/client/src/leap/soledad/client/shared_db.py +++ b/client/src/leap/soledad/client/shared_db.py @@ -91,14 +91,12 @@ class SoledadSharedDatabase(HTTPDatabase, TokenBasedAuth): # @staticmethod - def open_database(url, uuid, creds=None): + def open_database(url, creds=None): """ Open a Soledad shared database. :param url: URL of the remote database. :type url: str - :param uuid: The user's unique id. - :type uuid: str :param creds: A tuple containing the authentication method and credentials. :type creds: tuple @@ -106,7 +104,7 @@ class SoledadSharedDatabase(HTTPDatabase, TokenBasedAuth): :return: The shared database in the given url. :rtype: SoledadSharedDatabase """ - db = SoledadSharedDatabase(url, uuid, creds=creds) + db = SoledadSharedDatabase(url, creds=creds) return db @staticmethod -- cgit v1.2.3