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.

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

Creates a new queue of actions.

Overrides: object.__init__

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.