Home | Trees | Indices | Help |
|
---|
|
object --+ | _ActionSet
Class representing a set of actions to be executed.
This class does three different things. First, it ensures that the actions specified on the command-line are sensible. The command-line can only list either built-in actions or extended actions specified in configuration. Also, certain actions (in NONCOMBINE_ACTIONS) cannot be combined with other actions.
Second, the class enforces an execution order on the specified actions. Any time actions are combined on the command line (either built-in actions or extended actions), we must make sure they get executed in a sensible order.
Third, the class ensures that any pre-action or post-action hooks are scheduled and executed appropriately. Hooks are configured by building a dictionary mapping between hook action name and command. Pre-action hooks are executed immediately before their associated action, and post-action hooks are executed immediately after their associated action.
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
Inherited from |
|
Constructor for the
self.actionSet , the set of _ActionItem object
to be executed by executeActions() .
|
Executes all actions and extended actions, in the proper order. Each action (whether built-in or extension) is executed in an identical manner. The built-in actions will use only the options and config values. We also pass in the config path so that extension modules can re-parse configuration if they want to, to add in extra information.
|
|
ActionHook .
|
|
Builds a mapping from action name to proper execution index. If extensions configuration is None or
"index" , actions will scheduled by explicit index;
and if the extensions order mode is "dependency" ,
actions will be scheduled using a dependency graph.
|
Builds a mapping from action name to list of In most cases, the mapping from action name to
_ActionItem will be created with a proper function
reference and index value for execution ordering.
|
|
Validate that the set of specified actions is sensible. Any specified action must either be a built-in action or must be among the extended actions defined in configuration. The actions from within NONCOMBINE_ACTIONS may not be combined with other actions.
|
Build set of actions to be executed. The set of actions is built in the proper order, soexecuteActions can spin through the set without thinking
about it. Since we've already validated that the set of actions is
sensible, we don't take any precautions here to make sure things are
combined properly. If the action is listed, it will be
"scheduled" for execution.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Sep 19 22:08:42 2007 | http://epydoc.sourceforge.net |