spinetoolbox.project_items.data_connection.commands

Undo/redo commands for the DataConnection project item.

authors:
  1. Marin (KTH)
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.SpineToolboxCommand

Command to add DC references.

Parameters:
  • dc (DataConnection) – the DC
  • paths (set(str)) – set of paths to add
redo(self)[source]
undo(self)[source]
class spinetoolbox.project_items.data_connection.commands.RemoveDCReferencesCommand(dc, paths)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Command to remove DC references.

Parameters:
  • dc (DataConnection) – the DC
  • paths (list(str)) – list of paths to remove
redo(self)[source]
undo(self)[source]