comparison frontends/src/jp/base.py @ 2409:d2ff5ff3de77

jp (ad-hoc): new "list" and "run" commands: - list just display commands available at ad-hoc entry point. --verbose allows to display values names, which is useful for automation. - run can either run interactively a command, or execute a workflow to automate them.
author Goffi <goffi@goffi.org>
date Tue, 31 Oct 2017 23:20:04 +0100
parents 3865a772c360
children 8b37a62336c3
comparison
equal deleted inserted replaced
2408:a870daeab15e 2409:d2ff5ff3de77
857 class CommandAnswering(CommandBase): 857 class CommandAnswering(CommandBase):
858 """Specialised commands which answer to specific actions 858 """Specialised commands which answer to specific actions
859 859
860 to manage action_types answer, 860 to manage action_types answer,
861 """ 861 """
862 action_callbacks = {} # XXX: set managed action types in an dict here: 862 action_callbacks = {} # XXX: set managed action types in a dict here:
863 # key is the action_type, value is the callable 863 # key is the action_type, value is the callable
864 # which will manage the answer. profile filtering is 864 # which will manage the answer. profile filtering is
865 # already managed when callback is called 865 # already managed when callback is called
866 866
867 def onActionNew(self, action_data, action_id, security_limit, profile): 867 def onActionNew(self, action_data, action_id, security_limit, profile):