Пример #1
0
 def __init__(self):
     self.mongo = mdb_model.mongo_catalog()
     config.read(cfgfile)
     host = config.get('database','host')
     port = int(config.get('database','port'))
     self.getdata = get.data(host, port)
Пример #2
0
 def __init__(self,mongoHost='localhost',port=27017,database='cybercom_queue',collection='task_log'):
     self.mongo = mdb_model.mongo_catalog()