diff options
author | drebs <drebs@leap.se> | 2017-02-23 19:08:02 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-02-23 19:42:58 -0300 |
commit | a2e29d8bebbe7809dc10195982a205ed3709459c (patch) | |
tree | f5550e4d5e8a8f0b7bfda7a25ecbd3cf7205d163 /client | |
parent | 67fc01d1b055b4a0ff3742ba4c3d32bbef3e1b87 (diff) |
[refactor] remove syncable property from shared db
Diffstat (limited to 'client')
-rw-r--r-- | client/src/leap/soledad/client/shared_db.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/client/src/leap/soledad/client/shared_db.py b/client/src/leap/soledad/client/shared_db.py index 52b226b9..b429d2cb 100644 --- a/client/src/leap/soledad/client/shared_db.py +++ b/client/src/leap/soledad/client/shared_db.py @@ -55,10 +55,6 @@ class SoledadSharedDatabase(HTTPDatabase, TokenBasedAuth): # TODO: prevent client from messing with the shared DB. # TODO: define and document API. - # If syncable is False, the database will not attempt to sync against - # a remote replica. Default is True. - syncable = True - # # Token auth methods. # @@ -95,7 +91,7 @@ class SoledadSharedDatabase(HTTPDatabase, TokenBasedAuth): # @staticmethod - def open_database(url, uuid, creds=None, syncable=True): + def open_database(url, uuid, creds=None): """ Open a Soledad shared database. @@ -106,20 +102,11 @@ class SoledadSharedDatabase(HTTPDatabase, TokenBasedAuth): :param creds: A tuple containing the authentication method and credentials. :type creds: tuple - :param syncable: - If syncable is False, the database will not attempt to sync against - a remote replica. - :type syncable: bool :return: The shared database in the given url. :rtype: SoledadSharedDatabase """ - # XXX fix below, doesn't work with tests. - # if syncable and not url.startswith('https://'): - # raise ImproperlyConfiguredError( - # "Remote soledad server must be an https URI") db = SoledadSharedDatabase(url, uuid, creds=creds) - db.syncable = syncable return db @staticmethod |