siriushla.as_ap_configdb.models

Pvs configuration manager models.

Code Documentation

siriushla.as_ap_configdb.models.config_db_table_model module

Configuration database model.

class siriushla.as_ap_configdb.models.config_db_table_model.ConfigDbTableModel(config_type, client, discarded=False, parent=None)[source]

Bases: QAbstractTableModel

Model for configuration database.

columnCount(index)[source]

Return number of columns.

property config_type

Configuration type name.

connectionError

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

data(index, role=0)[source]

Return data at index.

flags(index)[source]

Override to make cells editable.

headerData(section, orientation, role)[source]

Return header.

horizontalHeader = ('config_type', 'name', 'created', 'modified')
removeRow

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

removeRows(row, count=1, index=<PyQt5.QtCore.QModelIndex object>)[source]

Updated table.

rowCount(index)[source]

Return number of configurations.

setupModelData(config_type, discarded=False)[source]

Set model data.

sort(column, order=0)[source]

Sort model by column.

siriushla.as_ap_configdb.models.config_names_model module

Model to get registered configuration names for a given type.

class siriushla.as_ap_configdb.models.config_names_model.ConfigNamesModel(connection, parent=None)[source]

Bases: QAbstractListModel

Model that gets a list of names given a configuration type.

columnCount(index)[source]

Return number of columns.

property config_type

Configuration type.

data(index, role=0)[source]

Return data at index.

rowCount(index)[source]

Return number of configurations.

setupModelData()[source]

Setup model data.

siriushla.as_ap_configdb.models.config_types_model module

Model to get all config types registered.

class siriushla.as_ap_configdb.models.config_types_model.ConfigPVsTypeModel(connection, parent=None)[source]

Bases: ConfigTypeModel

.

setupModelData()[source]

Set model data up.

class siriushla.as_ap_configdb.models.config_types_model.ConfigTypeModel(connection, parent=None)[source]

Bases: QAbstractListModel

.

columnCount(index)[source]

Return number of columns.

data(index, role=0)[source]

Return data at index.

rowCount(index)[source]

Return number of configurations.

setupModelData()[source]

Set model data up.

siriushla.as_ap_configdb.models.pv_configuration_model module

Model that gets the pvs field of configuration type.

class siriushla.as_ap_configdb.models.pv_configuration_model.PVConfigurationTableModel(config_type=None, parent=None)[source]

Bases: QAbstractTableModel

Table model with PVs from a given type of configuration.

columnCount(index)[source]

Return number of columns.

property config_type

Configuration type.

data(index, role=0)[source]

Return data at index.

flags(index)[source]

Override to make cells editable.

headerData(section, orientation, role)[source]

Return header.

property model_data

Data.

rowCount(index)[source]

Return number of rows.

setData(index, value, role=2)[source]

Set data.

setupModelData()[source]

Setup model data.