spinetoolbox.spine_db_editor.mvcmodels.utils

General helper functions and classes for DB editor’s models.

Module Contents

Functions

two_column_as_csv(indexes)

Writes data in given indexes into a CSV table.

spinetoolbox.spine_db_editor.mvcmodels.utils.two_column_as_csv(indexes)[source]

Writes data in given indexes into a CSV table.

Expects the source table to have two columns.

Parameters

indexes (Sequence of QModelIndex) – model indexes

Returns

data as CSV table

Return type

str