Package brisa :: Package upnp :: Package device :: Module action :: Class Action
[hide private]
[frames] | no frames]

Class Action

source code

            object --+    
                     |    
base_action.BaseAction --+
                         |
                        Action

Instance Methods [hide private]
 
__init__(self, service, name, arguments=[])
Constructor for the Action class.
source code
 
add_argument(self, argument)
Adds an argument to the action.
source code
Argument
get_in_argument(self, name)
Returns the in argument with the given name.
source code
Argument
get_out_argument(self, name)
Returns the out argument with the given name.
source code
 
__call__(self, *args, **kwargs) source code
 
run(self, *args, **kwargs) source code

Inherited from base_action.BaseAction: cleanup

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, service, name, arguments=[])
(Constructor)

source code 

Constructor for the Action class.

Parameters:
  • service - service which holds this action
  • name - action name
  • arguments - arguments list
Overrides: object.__init__
(inherited documentation)

add_argument(self, argument)

source code 

Adds an argument to the action.

Parameters:
  • argument (ArgumentDevice) - the argument

get_in_argument(self, name)

source code 

Returns the in argument with the given name.

Parameters:
  • name (string) - argument name
Returns: Argument

get_out_argument(self, name)

source code 

Returns the out argument with the given name.

Parameters:
  • name (string) - argument name
Returns: Argument

__call__(self, *args, **kwargs)
(Call operator)

source code 
Overrides: base_action.BaseAction.__call__