UserSettingsHolder
Holder for user configured settings.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SETTINGS_MODULE | string = null | SETTINGS_MODULE doesn't make much sense in the manually configured (standalone) case. |
Constructor
Signature
def UserSettingsHolder(
default_settings: module
)
Parameters
| Name | Type | Description |
|---|---|---|
| default_settings | module | The module from which configuration variables are retrieved if they are not found within the class instance. |
Methods
is_overridden()
@classmethod
def is_overridden(
setting: string
) - > boolean
Determines if a specific setting has been modified, deleted, or overridden relative to the base configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| setting | string | The name of the configuration setting to check for overrides. |
Returns
| Type | Description |
|---|---|
boolean | True if the setting differs from the initial default state, otherwise False. |