Make backend implementations compatible with the new settings.
authorAntony Chazapis <chazapis@gmail.com>
Mon, 5 Sep 2011 10:55:32 +0000 (13:55 +0300)
committerAntony Chazapis <chazapis@gmail.com>
Mon, 5 Sep 2011 10:55:32 +0000 (13:55 +0300)
Change settings.py, based on settings.py.dist.

pithos/backends/modular.py
pithos/backends/simple.py

index a90edbe..cec3412 100644 (file)
@@ -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
         
index 08cdc0c..910ccc5 100644 (file)
@@ -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