def __init__(self): """Constructor""" host, port, logging = loadMongoSetting() print(host) self.dbClient = pymongo.MongoClient(host, port) self.datayesClient = DatayesClient()
def __init__(self): """Constructor""" self.dbClient = pymongo.MongoClient() self.datayesClient = DatayesClient()
def __init__(self): """Constructor""" self.dbClient = pymongo.MongoClient(globalSetting['mongoHost'], globalSetting['mongoPort']) self.datayesClient = DatayesClient()