Package comodit_client :: Package api :: Module contexts :: Class ApplicationContext

Class ApplicationContext


An application context. An application context is attached to each application installed on a host.

Instance Methods
 
run_custom_action(self, key)
Requests the execution of the handler associated to given custom action key.

Inherited from settings.HasSettings: add_link_setting, add_property_setting, add_setting, add_simple_setting, get_setting, settings

Inherited from entity.Entity: __init__, create, delete, dump, load, refresh, rename, show, update

Inherited from util.json_wrapper.JsonWrapper: dump_json, get_json, get_real_json, load_json, print_json, set_json

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
string name
Name of this entity.
string label
A very short description of the entity.
string application
The name of the application this context configures.

Inherited from AbstractContext: environment, host, organization

Inherited from settings.HasSettings: settings_f

Inherited from entity.Entity: client, description, identifier, url, uuid

Inherited from object: __class__

Method Details

run_custom_action(self, key)

 

Requests the execution of the handler associated to given custom action key.

Parameters:
  • key (string) - The key of a custom action.

Property Details

name

Name of this entity.

Get Method:
unreachable.name(self)
Type:
string

label

A very short description of the entity. This value generally includes entity's identifier.

Get Method:
unreachable.label(self)
Type:
string

application

The name of the application this context configures.

Get Method:
unreachable.application(self) - The name of the application this context configures.
Set Method:
unreachable.application(self, application) - Sets the name of the application this context configures.
Type:
string