def manage_config(self, cursor, changed): if not changed: return if self.save_to_disk: save_config_to_disk(cursor, "QUERY RULES") if self.load_to_runtime: load_config_to_runtime(cursor, "QUERY RULES")
def manage_config(self, cursor, state): if state: if self.save_to_disk: save_config_to_disk(cursor, "SERVERS") if self.load_to_runtime: load_config_to_runtime(cursor, "SERVERS")
def manage_config(variable, save_to_disk, load_to_runtime, cursor, state): if state: if save_to_disk: save_config_to_disk(cursor, "VARIABLES", variable) if load_to_runtime: load_config_to_runtime(cursor, "VARIABLES", variable)