Merge pull request #301 from gi0baro/issue1772
Issue #1772: let the user choose uploads_in_blob with mongodb
This commit is contained in:
@@ -5510,6 +5510,8 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
# synchronous, except when overruled by either this default or
|
# synchronous, except when overruled by either this default or
|
||||||
# function parameter
|
# function parameter
|
||||||
self.safe = adapter_args.get('safe',True)
|
self.safe = adapter_args.get('safe',True)
|
||||||
|
# load user setting for uploads in blob storage
|
||||||
|
self.uploads_in_blob = adapter_args.get('uploads_in_blob', False)
|
||||||
|
|
||||||
if isinstance(m,tuple):
|
if isinstance(m,tuple):
|
||||||
m = {"database" : m[1]}
|
m = {"database" : m[1]}
|
||||||
|
|||||||
Reference in New Issue
Block a user