Taurus custom settings

Taurus provides a module located at its root directory called tauruscustomsettings which stores global configuration options. It can be modified permanently so that it affects all applications (use with care), or accessed at run time for setting options for the current execution.

This module contains some Taurus-wide default configurations.

The idea is that the final user may edit the values here to customize certain aspects of Taurus.

DEFAULT_QT_API = 'pyqt'

Set preffered API if not is already loaded

DEFAULT_SCHEME = 'tango'

Default scheme (if not defined, “tango” is assumed)

EXTRA_SCHEME_MODULES = []

Extra Taurus schemes. You can add a list of modules to be loaded for providing support to new schemes (e.g. EXTRA_SCHEME_MODULES = [‘myownschememodule’]

FILTER_OLD_TANGO_EVENTS = True

Filter old tango events: Sometimes TangoAttribute can receive an event with an older timestamp than its current one. See https://github.com/taurus-org/taurus/issues/216 True discards (Tango) events whose timestamp is older than the cached one. False (or commented out) for backwards (pre 4.1) compatibility

LIGHTWEIGHT_IMPORTS = False

Lightweight imports: True enables delayed imports (may break older code). False (or commented out) for backwards compatibility

Custom organization logo. Set the absolute path to an image file to be used as your organization logo. Qt registered paths can also be used. If not set, it defaults to ‘logos:taurus.png” (note that “logos:” is a Qt a registered path for “<taurus>/qt/qtgui/icon/logos/”)

PLY_OPTIMIZE = 1

PLY (lex/yacc) optimization: 1=Active (default) , 0=disabled. Set PLY_OPTIMIZE = 0 if you are getting yacc exceptions while loading synoptics

QT_AUTO_INIT_LOG = True

Auto initialize Qt logging to python logging

QT_AUTO_REMOVE_INPUTHOOK = True

Remove input hook (only valid for PyQt4)

QT_THEME_DIR = ''

Select the theme to be used: set the theme dir and the theme name. The path can be absolute or relative to the dir of taurus.qt.qtgui.icon If not set, the dir of taurus.qt.qtgui.icon will be used

QT_THEME_FORCE_ON_LINUX = True

In Linux the QT_THEME_NAME is not applied (to respect the system theme) setting QT_THEME_FORCE_ON_LINUX=True overrides this.

QT_THEME_NAME = 'Tango'

The name of the icon theme (e.g. ‘Tango’, ‘Oxygen’, etc). Default=’Tango’

STRICT_MODEL_NAMES = False

Strict RFC3986 URI names in models. True makes Taurus only use the strict URI names False enables a backwards-compatibility mode for pre-sep3 model names

TANGO_SERIALIZATION_MODE = 'Serial'

Default serialization mode for the tango scheme. Possible values are: ‘Serial’ (default), ‘Concurrent’, or ‘TangoSerial’ (deprecated)

T_FORM_COMPACT = False

Compact mode for widgets True sets the preferred mode of TaurusForms to use “compact” widgets

T_FORM_CUSTOM_WIDGET_MAP = {'ZeroDExpChannel': ('sardana.taurus.qt.qtgui.extra_pool.PoolChannelTV', (), {}), 'SimuMotor': ('sardana.taurus.qt.qtgui.extra_pool.PoolMotorTV', (), {}), 'Motor': ('sardana.taurus.qt.qtgui.extra_pool.PoolMotorTV', (), {}), 'PseudoCounter': ('sardana.taurus.qt.qtgui.extra_pool.PoolChannelTV', (), {}), 'OneDExpChannel': ('sardana.taurus.qt.qtgui.extra_pool.PoolChannelTV', (), {}), 'TwoDExpChannel': ('sardana.taurus.qt.qtgui.extra_pool.PoolChannelTV', (), {}), 'IORegister': ('sardana.taurus.qt.qtgui.extra_pool.PoolIORegisterTV', (), {}), 'PseudoMotor': ('sardana.taurus.qt.qtgui.extra_pool.PoolMotorTV', (), {}), 'CTExpChannel': ('sardana.taurus.qt.qtgui.extra_pool.PoolChannelTV', (), {})}

A map for using custom widgets for certain devices in TaurusForms. It is a dictionary with the following structure: device_class_name:(classname_with_full_module_path, args, kwargs) where the args and kwargs will be passed to the constructor of the class