Package comodit_client :: Package api :: Module contexts :: Class ApplicationContextCollection

Class ApplicationContextCollection


Application contexts collection. Update is not supported.

Instance Methods
 
new(self, app_name, settings={})
Instantiates a new application context associated to a particular application (that must be owned by the organization this host is owned by).
 
create(self, app_name, settings={})
Creates remotely a new application context associated to a particular application (that must be owned by the organization this host is owned by).

Inherited from collection.Collection: __init__, __iter__, clear, delete, get, list, refresh

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

new(self, app_name, settings={})

 

Instantiates a new application context associated to a particular application (that must be owned by the organization this host is owned by).

Parameters:
  • app_name (string) - The name of the application.
  • settings (dict) - A dictionary describing the settings to add to this context (see this function's specification for expected data model).

create(self, app_name, settings={})

 

Creates remotely a new application context associated to a particular application (that must be owned by the organization this host is owned by). The creation of an application context means the application is actually installed on host.