Package comodit_client :: Package api :: Module importer :: Class CreateEntity

Class CreateEntity


Entity creation action.

Instance Methods
 
__init__(self, conflict, res_object, entity_type)
Creates a new create-entity action instance.
 
execute(self)
Executes this action.
string
get_summary(self)
Provides a description of this action.

Inherited from Action: conflict, display

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, conflict, res_object, entity_type)
(Constructor)

 

Creates a new create-entity action instance.

Parameters:
  • conflict (bool) - True if the action is conflicting, false otherwise.
  • res_object (Entity) - The entity to create.
  • entity_type (string) - Entity type.
Overrides: object.__init__

execute(self)

 

Executes this action.

Overrides: Action.execute
(inherited documentation)

get_summary(self)

 

Provides a description of this action.

Returns: string
A description of this action.
Overrides: Action.get_summary
(inherited documentation)