comparison sat_frontends/jp/constants.py @ 2777:ff1b40823b07

jp (pubsub): new "transform" command: This command allows to pass all requested items through an external command to filter them (i.e. modify their content). - created new jp.xml_tools module with some common functions (like lxml parsing) - new EXIT code EXIT_CMD_ERROR (used when a third party utility returns an error)
author Goffi <goffi@goffi.org>
date Tue, 15 Jan 2019 08:51:56 +0100
parents 003b8b4b56a7
children ab2696e34d29
comparison
equal deleted inserted replaced
2776:838f53730ce4 2777:ff1b40823b07
78 EXIT_ERROR = 1 # generic error, when nothing else match 78 EXIT_ERROR = 1 # generic error, when nothing else match
79 EXIT_BAD_ARG = 2 # arguments given by user are bad 79 EXIT_BAD_ARG = 2 # arguments given by user are bad
80 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge 80 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge
81 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method 81 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 82 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 83 EXIT_DATA_ERROR = 17 # data needed for a command is invalid
84 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available
84 EXIT_USER_CANCELLED = 20 # user cancelled action 85 EXIT_USER_CANCELLED = 20 # user cancelled action
85 EXIT_FILE_NOT_EXE = ( 86 EXIT_FILE_NOT_EXE = (
86 126 87 126
87 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit) 88 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit)
88 EXIT_CMD_NOT_FOUND = 127 # a utility to be executed was not found (cf. man 1 exit) 89 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
89 EXIT_SIGNAL_INT = 128 # a command was interrupted by a signal (cf. man 1 exit) 91 EXIT_SIGNAL_INT = 128 # a command was interrupted by a signal (cf. man 1 exit)