From: Antony Chazapis Date: Mon, 5 Sep 2011 10:55:32 +0000 (+0300) Subject: Make backend implementations compatible with the new settings. X-Git-Tag: pithos/v0.7.8~113 X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/281cc814552a7e9e87c26c54bfa5627f2d85909b Make backend implementations compatible with the new settings. Change settings.py, based on settings.py.dist. --- diff --git a/pithos/backends/modular.py b/pithos/backends/modular.py index a90edbe..cec3412 100644 --- a/pithos/backends/modular.py +++ b/pithos/backends/modular.py @@ -77,7 +77,7 @@ class ModularBackend(BaseBackend): Uses modules for SQL functions and storage. """ - def __init__(self, db): + def __init__(self, db, db_options): self.hash_algorithm = 'sha256' self.block_size = 4 * 1024 * 1024 # 4MB diff --git a/pithos/backends/simple.py b/pithos/backends/simple.py index 08cdc0c..910ccc5 100644 --- a/pithos/backends/simple.py +++ b/pithos/backends/simple.py @@ -72,7 +72,7 @@ class SimpleBackend(BaseBackend): # TODO: Create account if not present in all functions. - def __init__(self, db): + def __init__(self, db, db_options): self.hash_algorithm = 'sha256' self.block_size = 4 * 1024 * 1024 # 4MB