Skip to main content

UserSettingsHolder

Holder for user configured settings.

Attributes

AttributeTypeDescription
SETTINGS_MODULEstring = nullSETTINGS_MODULE doesn't make much sense in the manually configured (standalone) case.

Constructor

Signature

def UserSettingsHolder(
default_settings: module
)

Parameters

NameTypeDescription
default_settingsmoduleThe 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

NameTypeDescription
settingstringThe name of the configuration setting to check for overrides.

Returns

TypeDescription
booleanTrue if the setting differs from the initial default state, otherwise False.