Database models for integration configuration.
- class BaseIntegrationConfig(*args, **kwargs)¶
Base class for stored configuration for a particular integration.
This contains configuration settings for a given instance of an integration, along with state indicating if that integration is to be enabled and user-specified identifying information.
This is meant to be subclassed, in order to provide additional state that may be needed by an application.
- property integration¶
The integration for the configuration.
- get(key, default=None)¶
Return the setting for a given key.
This will return the setting’s stored value, or its default value for the integration if unset in these settings. If the setting isn’t set in either place, the provided default will be returned instead.
key (unicode) – The settings key.
default (object) – The default value, if not available elsewhere.
The resulting value from settings, or the default value if not found.