ppms.global_setting
This module allows you to read global settings.
Functions
Function | Parameters | Return Value | Description |
|---|---|---|---|
cache_clear | Clears the global setting cache. Note that saving in the default PLANTA global settings module calls this function | ||
get_global_setting_value | python_id: The Python-ID of the global setting to retrieve. | The value of the global setting or the | Retrieves a global setting. After retrieving a value once, it will be cached until |
Examples
Reading a global setting
from ppms.global_setting import get_global_setting_value
module_id = get_global_setting_value(python_id='profiling_dialog_module', attribute='alpha120', default='009CQE')