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 | 5505f1397f7130b9731e51cb52abd820a8564cb8 (patch) | |
tree | 33936d18f04aa3668c38ebf22c8241285af83981 /src/leap/soledad/server.py | |
parent | 123c035b421dcb62a9cd36884f1f0761938899a0 (diff) |
Soledad server can store using CouchDB.
Diffstat (limited to 'src/leap/soledad/server.py')
-rw-r--r-- | src/leap/soledad/server.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/leap/soledad/server.py b/src/leap/soledad/server.py index 708e2e8c..4fc97be5 100644 --- a/src/leap/soledad/server.py +++ b/src/leap/soledad/server.py @@ -7,13 +7,11 @@ This should be run with: from twisted.web.wsgi import WSGIResource from twisted.internet import reactor +from u1db.remote import http_app +from leap.soledad.backends.couch import CouchServerState -from u1db.remote import ( - http_app, - server_state, -) - -state = server_state.ServerState() +couch_url = 'http://localhost:5984' +state = CouchServerState(couch_url) # TODO: change working dir to something meaningful state.set_workingdir('/tmp') # TODO: write a LeapHTTPApp that will use Couch as backend instead of SQLite |