From 08b4d702d4c3d7427d8f794fa3176a5c63a52d18 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 3 May 2013 17:24:54 -0300 Subject: Protect property in couch server state. --- src/leap/soledad/backends/couch.py | 8 ++++---- 1 file 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) -- cgit v1.2.3