projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
702bfe6
)
Allow db_module and block_module to be None
author
Giorgos Verigakis
<verigak@gmail.com>
Fri, 9 Dec 2011 11:23:43 +0000
(13:23 +0200)
committer
Giorgos Verigakis
<verigak@gmail.com>
Fri, 9 Dec 2011 11:23:43 +0000
(13:23 +0200)
And use sqlalchemy and hash filer as default
options.
pithos/backends/modular.py
patch
|
blob
|
history
diff --git
a/pithos/backends/modular.py
b/pithos/backends/modular.py
index
135a819
..
12a08f0
100644
(file)
--- a/
pithos/backends/modular.py
+++ b/
pithos/backends/modular.py
@@
-78,6
+78,9
@@
class ModularBackend(BaseBackend):
"""
def __init__(self, db_module, db_connection, block_module, block_path):
+ db_module = db_module or 'pithos.backends.lib.sqlalchemy'
+ block_module = block_module or 'pithos.backends.lib.hashfiler'
+
self.hash_algorithm = 'sha256'
self.block_size = 4 * 1024 * 1024 # 4MB