summaryrefslogtreecommitdiff
path: root/src/leap/soledad/backends/sqlcipher.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-11 15:03:12 -0200
committerdrebs <drebs@leap.se>2012-12-11 15:03:12 -0200
commita12b80b23695dd1db8ac5edeb4b79e6ff8e527c2 (patch)
tree24369aacaf3c305fcbe9745907579b5493a1c498 /src/leap/soledad/backends/sqlcipher.py
parent7823990656ac65982a1322ea049298350fb2185e (diff)
Fix SQLCipherDatabase and add tests.
Diffstat (limited to 'src/leap/soledad/backends/sqlcipher.py')
-rw-r--r--src/leap/soledad/backends/sqlcipher.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/backends/sqlcipher.py b/src/leap/soledad/backends/sqlcipher.py
index fcdab251..301d4a7f 100644
--- a/src/leap/soledad/backends/sqlcipher.py
+++ b/src/leap/soledad/backends/sqlcipher.py
@@ -60,7 +60,8 @@ def open(path, create, document_factory=None, password=None):
class SQLCipherDatabase(SQLitePartialExpandDatabase):
"""A U1DB implementation that uses SQLCipher as its persistence layer."""
- _sqlite_registry = {}
+ _index_storage_value = 'expand referenced encrypted'
+
@classmethod
def set_pragma_key(cls, db_handle, key):
@@ -113,7 +114,7 @@ class SQLCipherDatabase(SQLitePartialExpandDatabase):
raise
if backend_cls is None:
# default is SQLCipherPartialExpandDatabase
- backend_cls = SQLCipherPartialExpandDatabase
+ backend_cls = SQLCipherDatabase
return backend_cls(sqlite_file, document_factory=document_factory,
password=password)