示例#1
0
 def write_reports(report_name, reports_obj_list):
     """
     Write reports to json file
     :param report_name: Name of report
     :param reports_obj_list:  List with reports from server
     """
     path = "data/" + report_name + ".json"
     json_data.write(path, reports_obj_list)
 def write_reports(report_name, reports_obj_list):
     path = "data/" + report_name + ".json"
     json_data.write(path, reports_obj_list)
 def write_logs(self):
     json_data.write(self.__conf_dict["logs_path"],
                     self.__logs_dict.values())
 def write_workers(self):
     json_data.write(self.__conf_dict["workers_path"],
                     self.__workers_dict.values())
 def write_terminals(self):
     json_data.write(self.__conf_dict["terms_path"],
                     self.__term_dict.values())
示例#6
0
 def write_logs(self):
     """
     Write logs from server object to json file
     """
     json_data.write(self.__conf_dict["logs_path"],
                     self.__logs_dict.values())
示例#7
0
 def write_workers(self):
     """
     Write workers from server object to json file
     """
     json_data.write(self.__conf_dict["workers_path"],
                     self.__workers_dict.values())
示例#8
0
 def write_terminals(self):
     """
     Write terminals from server object to json file
     """
     json_data.write(self.__conf_dict["terms_path"],
                     self.__term_dict.values())