summaryrefslogtreecommitdiff
path: root/src/leap/soledad/backends
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-05-03 17:24:54 -0300
committerdrebs <drebs@leap.se>2013-05-03 17:24:54 -0300
commit08b4d702d4c3d7427d8f794fa3176a5c63a52d18 (patch)
tree51994ce8515d091ace312b2f1a24bd8f15bb71a9 /src/leap/soledad/backends
parent54e463be00de78a336f4e547634a77faf6a60b37 (diff)
Protect property in couch server state.
Diffstat (limited to 'src/leap/soledad/backends')
-rw-r--r--src/leap/soledad/backends/couch.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/soledad/backends/couch.py b/src/leap/soledad/backends/couch.py
index 360f3211..a7b43e82 100644
--- a/src/leap/soledad/backends/couch.py
+++ b/src/leap/soledad/backends/couch.py
@@ -420,7 +420,7 @@ class CouchServerState(ServerState):
"""
def __init__(self, couch_url):
- self.couch_url = couch_url
+ self._couch_url = couch_url
def open_database(self, dbname):
"""
@@ -434,7 +434,7 @@ class CouchServerState(ServerState):
"""
# TODO: open couch
return CouchDatabase.open_database(
- self.couch_url + '/' + dbname,
+ self._couch_url + '/' + dbname,
create=False)
def ensure_database(self, dbname):
@@ -448,7 +448,7 @@ class CouchServerState(ServerState):
@rtype: (CouchDatabase, str)
"""
db = CouchDatabase.open_database(
- self.couch_url + '/' + dbname,
+ self._couch_url + '/' + dbname,
create=True)
return db, db._replica_uid
@@ -459,4 +459,4 @@ class CouchServerState(ServerState):
@param dbname: The name of the database to delete.
@type dbname: str
"""
- CouchDatabase.delete_database(self.couch_url + '/' + dbname)
+ CouchDatabase.delete_database(self._couch_url + '/' + dbname)