示例#1
0
    def __init__(self):
        """Constructor"""
        host, port, logging = loadMongoSetting()

        print(host)
        self.dbClient = pymongo.MongoClient(host, port)
        self.datayesClient = DatayesClient()
示例#2
0
 def __init__(self):
     """Constructor"""
     self.dbClient = pymongo.MongoClient()
     self.datayesClient = DatayesClient()
示例#3
0
 def __init__(self):
     """Constructor"""
     self.dbClient = pymongo.MongoClient(globalSetting['mongoHost'],
                                         globalSetting['mongoPort'])
     self.datayesClient = DatayesClient()