diff options
author | drebs <drebs@leap.se> | 2013-01-31 18:15:02 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-01-31 18:15:02 -0200 |
commit | 74372f4c613d22a094a91ba4a5e41b776c5a2867 (patch) | |
tree | d411b0b61de64e36cf1dfcaacfffa566d5ca9189 /backends/leap_backend.py | |
parent | 193b018842bd1c9460e77363338f057fcb22a390 (diff) |
Soledad server can store using CouchDB.
Diffstat (limited to 'backends/leap_backend.py')
-rw-r--r-- | backends/leap_backend.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/backends/leap_backend.py b/backends/leap_backend.py index e1acabec..f9d37e19 100644 --- a/backends/leap_backend.py +++ b/backends/leap_backend.py @@ -7,7 +7,6 @@ from u1db import Document from u1db.remote import utils from u1db.remote.http_target import HTTPSyncTarget from u1db.remote.http_database import HTTPDatabase -from u1db.remote.server_state import ServerState from u1db.errors import BrokenSyncStream import uuid @@ -202,25 +201,3 @@ class LeapSyncTarget(HTTPSyncTarget): data = None return res['new_generation'], res['new_transaction_id'] - -class LeapServerState(ServerState): - """ - Inteface of the WSGI server with the CouchDB backend. - """ - - def __init__(self): - pass - - def open_database(self, url): - # TODO: open couch - from leap.soledad.backends.couch import CouchDatabase - return CouchDatabase(url, create=False) - - def ensure_database(self, url): - from leap.soledad.backends.couch import CouchDatabase - db = CouchDatabase(url, create=True) - return db, db._replica_uid - - def delete_database(self, url): - from leap.soledad.backends.couch import CouchDatabase - CouchDatabase.delete_database(url) |