Commit 4b9a1431 by Don Mitchell

Ignore collection config arg which other mongo connectors use.

parent 6f425814
......@@ -16,8 +16,15 @@ import json
class MongoContentStore(ContentStore):
def __init__(self, host, db, port=27017, user=None, password=None, bucket='fs', **kwargs):
# pylint: disable=W0613
def __init__(self, host, db, port=27017, user=None, password=None, bucket='fs', collection=None, **kwargs):
"""
Establish the connection with the mongo backend and connect to the collections
:param collection: ignores but provided for consistency w/ other doc_store_config patterns
"""
logging.debug('Using MongoDB for static content serving at host={0} db={1}'.format(host, db))
_db = Connection(host=host, port=port, **kwargs)[db]
if user is not None and password is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment