Package comodit_client :: Package api :: Module importer :: Class ActionsQueue

Class ActionsQueue

The queue of actions.

Instance Methods
 
__init__(self)
Creates a new queue of actions.
 
add_action(self, action)
Adds an action to the queue.
bool
no_conflict(self)
Tells if the queue contains a conflicting action.
 
apply_actions(self, skip_conflicts)
Applies queued actions.
 
display_actions(self, show_only_conflicts)
Displays queued actions.
Method Details

add_action(self, action)

 

Adds an action to the queue.

Parameters:
  • action (Action) - The action to queue.

no_conflict(self)

 

Tells if the queue contains a conflicting action.

Returns: bool
True if the queue contains conflicting actions, false otherwise.

apply_actions(self, skip_conflicts)

 

Applies queued actions.

Parameters:
  • skip_conflicts (bool) - If true, conflicting actions are not applied.

display_actions(self, show_only_conflicts)

 

Displays queued actions.

Parameters:
  • show_only_conflicts (bool) - If true, only conflicting actions are displayed.