spinetoolbox.project_items.data_connection.commands¶
Undo/redo commands for the DataConnection project item.
| authors: |
|
|---|---|
| date: | 5.5.2020 |
Module Contents¶
Classes¶
AddDCReferencesCommand |
Command to add DC references. |
RemoveDCReferencesCommand |
Command to remove DC references. |
-
class
spinetoolbox.project_items.data_connection.commands.AddDCReferencesCommand(dc, paths)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to add DC references.
Parameters: - dc (DataConnection) – the DC
- paths (set(str)) – set of paths to add
-
class
spinetoolbox.project_items.data_connection.commands.RemoveDCReferencesCommand(dc, paths)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to remove DC references.
Parameters: - dc (DataConnection) – the DC
- paths (list(str)) – list of paths to remove