summaryrefslogtreecommitdiff
path: root/src/leap/soledad/__init__.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-04-29 15:39:57 -0300
committerdrebs <drebs@leap.se>2013-04-29 15:39:57 -0300
commit2b52811ce7357b1a10aacb274903e090574166cc (patch)
treee7e4295d53e786635d023f0004d2d1bc460be36c /src/leap/soledad/__init__.py
parentcc9537b9c73c6f502dc4576df0aee4409e887d47 (diff)
Remove gnupg_home from where it still was.
Diffstat (limited to 'src/leap/soledad/__init__.py')
-rw-r--r--src/leap/soledad/__init__.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py
index 06f7c755..d6122608 100644
--- a/src/leap/soledad/__init__.py
+++ b/src/leap/soledad/__init__.py
@@ -107,7 +107,7 @@ class Soledad(object):
The length of the secret used for symmetric encryption.
"""
- def __init__(self, address, passphrase, config_path=None, gnupg_home=None,
+ def __init__(self, address, passphrase, config_path=None,
secret_path=None, local_db_path=None,
shared_db_url=None, auth_token=None, bootstrap=True):
"""
@@ -120,8 +120,6 @@ class Soledad(object):
@type passphrase: str
@param config_path: Path for configuration file.
@type config_path: str
- @param gnupg_home: Home directory for gnupg.
- @type gnupg_home: str
@param secret_path: Path for storing encrypted key used for
symmetric encryption.
@type secret_path: str
@@ -142,7 +140,6 @@ class Soledad(object):
self._auth_token = auth_token
self._init_config(
config_path=config_path,
- gnupg_home=gnupg_home,
secret_path=secret_path,
local_db_path=local_db_path,
shared_db_url=shared_db_url,
@@ -223,7 +220,7 @@ class Soledad(object):
else:
self._config.load(data='')
# overwrite config with passed parameters
- for param in ['gnupg_home', 'secret_path', 'local_db_path',
+ for param in ['secret_path', 'local_db_path',
'shared_db_url']:
if param in kwargs and kwargs[param] is not None:
self._config._config_checker.config[param] = kwargs[param]
@@ -234,8 +231,7 @@ class Soledad(object):
"""
paths = map(
lambda x: os.path.dirname(x),
- [self._config.get_gnupg_home(), self._config.get_local_db_path(),
- self._config.get_secret_path()])
+ [self._config.get_local_db_path(), self._config.get_secret_path()])
for path in paths:
if not os.path.isdir(path):
os.makedirs(path)