comparison sat_frontends/jp/constants.py @ 3040:fee60f17ebac

jp: jp asyncio port: /!\ this commit is huge. Jp is temporarily not working with `dbus` bridge /!\ This patch implements the port of jp to asyncio, so it is now correctly using the bridge asynchronously, and it can be used with bridges like `pb`. This also simplify the code, notably for things which were previously implemented with many callbacks (like pagination with RSM). During the process, some behaviours have been modified/fixed, in jp and backends, check diff for details.
author Goffi <goffi@goffi.org>
date Wed, 25 Sep 2019 08:56:41 +0200
parents ab2696e34d29
children 9d0df638c8b4
comparison
equal deleted inserted replaced
3039:a1bc34f90fa5 3040:fee60f17ebac
64 A_SUBHEADER = A.BOLD + A.FG_RED 64 A_SUBHEADER = A.BOLD + A.FG_RED
65 # A_LEVEL_COLORS may be used to cycle on colors according to depth of data 65 # A_LEVEL_COLORS may be used to cycle on colors according to depth of data
66 A_LEVEL_COLORS = (A_HEADER, A.BOLD + A.FG_BLUE, A.FG_MAGENTA, A.FG_CYAN) 66 A_LEVEL_COLORS = (A_HEADER, A.BOLD + A.FG_BLUE, A.FG_MAGENTA, A.FG_CYAN)
67 A_SUCCESS = A.BOLD + A.FG_GREEN 67 A_SUCCESS = A.BOLD + A.FG_GREEN
68 A_FAILURE = A.BOLD + A.FG_RED 68 A_FAILURE = A.BOLD + A.FG_RED
69 A_WARNING = A.BOLD + A.FG_RED
69 #  A_PROMPT_* is for shell 70 #  A_PROMPT_* is for shell
70 A_PROMPT_PATH = A.BOLD + A.FG_CYAN 71 A_PROMPT_PATH = A.BOLD + A.FG_CYAN
71 A_PROMPT_SUF = A.BOLD 72 A_PROMPT_SUF = A.BOLD
72 # Files 73 # Files
73 A_DIRECTORY = A.BOLD + A.FG_CYAN 74 A_DIRECTORY = A.BOLD + A.FG_CYAN
81 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method 82 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method
82 EXIT_NOT_FOUND = 16 # an item required by a command was not found 83 EXIT_NOT_FOUND = 16 # an item required by a command was not found
83 EXIT_DATA_ERROR = 17 # data needed for a command is invalid 84 EXIT_DATA_ERROR = 17 # data needed for a command is invalid
84 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available 85 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available
85 EXIT_USER_CANCELLED = 20 # user cancelled action 86 EXIT_USER_CANCELLED = 20 # user cancelled action
87 EXIT_INTERNAL_ERROR = 111 # unexpected error
86 EXIT_FILE_NOT_EXE = ( 88 EXIT_FILE_NOT_EXE = (
87 126 89 126
88 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit) 90 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit)
89 EXIT_CMD_NOT_FOUND = 127 # a utility to be executed was not found (cf. man 1 exit) 91 EXIT_CMD_NOT_FOUND = 127 # a utility to be executed was not found (cf. man 1 exit)
90 EXIT_CMD_ERROR = 127 # a utility to be executed returned an error exit code 92 EXIT_CMD_ERROR = 127 # a utility to be executed returned an error exit code