summaryrefslogtreecommitdiff
path: root/common/src/leap/soledad
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2016-11-17 01:33:04 -0300
committerdrebs <drebs@leap.se>2016-12-12 09:13:09 -0200
commit529dbdf27804f12da80907d25c412d10e9fa3763 (patch)
tree34e7978593562feb05b65492f951c87ccba90551 /common/src/leap/soledad
parent632cd2414a47bc7f471d8f501ab6250293aedf51 (diff)
[style] fix pep8 and confs
Fixes setup.cfg, adding current exclude rules, simplified tox.ini to use setup.cfg and fixed all.
Diffstat (limited to 'common/src/leap/soledad')
-rw-r--r--common/src/leap/soledad/common/l2db/backends/sqlite_backend.py1
-rw-r--r--common/src/leap/soledad/common/l2db/remote/http_app.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/l2db/backends/sqlite_backend.py b/common/src/leap/soledad/common/l2db/backends/sqlite_backend.py
index 295f3132..27db65af 100644
--- a/common/src/leap/soledad/common/l2db/backends/sqlite_backend.py
+++ b/common/src/leap/soledad/common/l2db/backends/sqlite_backend.py
@@ -923,4 +923,5 @@ class SQLitePartialExpandDatabase(SQLiteDatabase):
raw_doc = json.loads(doc)
self._update_indexes(doc_id, raw_doc, getters, c)
+
SQLiteDatabase.register_implementation(SQLitePartialExpandDatabase)
diff --git a/common/src/leap/soledad/common/l2db/remote/http_app.py b/common/src/leap/soledad/common/l2db/remote/http_app.py
index a9680890..496274b2 100644
--- a/common/src/leap/soledad/common/l2db/remote/http_app.py
+++ b/common/src/leap/soledad/common/l2db/remote/http_app.py
@@ -194,6 +194,7 @@ class URLToResource(object):
resource_cls = params.pop('resource_cls')
return resource_cls, params
+
url_to_resource = URLToResource()