def on_ok(cls): log_flags = {} if cls.items[1][1] == '[*]': log_flags['DCT'] = True else: log_flags['DCT'] = False if cls.items[2][1] == '[*]': log_flags['ThinPrint'] = True application.enable_thinprint_logs() else: log_flags['ThinPrint'] = False application.disable_thinprint_logs() if cls.items[2][1] == '[*]': log_flags['Serial'] = True else: log_flags['Serial'] = False if cls.items[4][1] == '[*]': log_flags['Scanner'] = True else: log_flags['Scanner'] = False if cls.items[5][1] == '[*]': log_flags['Installer'] = True else: log_flags['Installer'] = False if cls.items[6][1] == '[*]': log_flags['PcoIP'] = True else: log_flags['PcoIP'] = False if cls.items[7][1] == '[*]': log_flags['MKS'] = True else: log_flags['MKS'] = False
def on_ok(cls): log_flags = {} if cls.items[1][1] == "[*]": log_flags["DCT"] = True application.enable_dct_logs() else: log_flags["DCT"] = False application.disable_dct_logs() if cls.items[2][1] == "[*]": log_flags["ThinPrint"] = True application.enable_thinprint_logs() else: log_flags["ThinPrint"] = False application.disable_thinprint_logs() if cls.items[3][1] == "[*]": log_flags["Blast"] = True application.enable_blast_logs() else: log_flags["Blast"] = False application.disable_blast_logs() if cls.items[4][1] == "[*]": log_flags["H264"] = True application.enable_h264_logs() else: log_flags["H264"] = False application.disable_h264_logs() if cls.items[5][1] == "[*]": log_flags["Serial"] = True print "Enable Serial logs successfully" else: log_flags["Serial"] = False print "Disable Serial logs successfully" if cls.items[6][1] == "[*]": log_flags["Scanner"] = True print "Enable Scanner logs successfully" else: log_flags["Scanner"] = False print "Disable Scanner logs successfully" if cls.items[7][1] == "[*]": log_flags["Installer"] = True print "Enable Installer logs successfully" else: log_flags["Installer"] = False print "Disable Installer logs successfully" if cls.items[8][1] == "[*]": log_flags["PCoIP"] = True print "Enable PCoIP logs successfully" else: log_flags["PCoIP"] = False print "Disable PCoIP logs successfully" if cls.items[9][1] == "[*]": log_flags["MKS"] = True print "Enable MKS logs successfully" else: log_flags["MKS"] = False print "Disable MKS logs successfully"