def __init__(self, username=None, password=None, server=None, authSource='admin', database='datanator', max_entries=float('inf'), verbose=True, collection_str='ecmdb', readPreference='nearest', replicaSet=None):
    self.mongo_manager = mongo_util.MongoUtil(MongoDB=server, username=username, password=password, authSource=authSource, db=database, readPreference=readPreference, replicaSet=replicaSet)
    self.collation = Collation(locale='en', strength=CollationStrength.SECONDARY)
    self.max_entries = max_entries
    self.verbose = verbose
    (self.client, self.db, self.collection) = self.mongo_manager.con_db(collection_str)
    self.collection_str = collection_str
def __init__(self, username=None, password=None, server=None, authSource='admin', database='datanator', max_entries=float('inf'), verbose=True, collection_str='ecmdb', readPreference='nearest', replicaSet=None):
    self.mongo_manager = mongo_util.MongoUtil(MongoDB=server, username=username, password=password, authSource=authSource, db=database, readPreference=readPreference, replicaSet=replicaSet)
    self.collation = Collation(locale='en', strength=CollationStrength.SECONDARY)
    self.max_entries = max_entries
    self.verbose = verbose
    (self.client, self.db, self.collection) = self.mongo_manager.con_db(collection_str)
    self.collection_str = collection_str