def database_connect(self): self.db = myRSQL() self.db.timeout = 3 log.debug("%-8s [%s] node <<%s %s %s %s>> connect" % (self.db_tag, self.db_host, self.db_id, self.db_pw, self.db_name, int(self.db_port))) self.db.connect(self.db_tag, \ self.db_host, self.db_id, self.db_pw, self.db_name, int(self.db_port) )
def database_connect(self): self.db = myRSQL() self.db.connect(self.db_tag, \ self.db_host, self.db_id, self.db_pw, self.db_name, int(self.db_port) )