spinetoolbox.project_items.exporter.commands

Undo/redo commands for the Exporter project item.

authors:
  1. Soininen (VTT)
date:

30.4.2020

Module Contents

Classes

UpdateExporterOutFileName Command to update Exporter output file name.
UpdateScenario
param exporter:the Exporter
UpdateExporterSettings Command to update Exporter settings.
class spinetoolbox.project_items.exporter.commands.UpdateExporterOutFileName(exporter, file_name, database_path)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Command to update Exporter output file name.

Parameters:
  • exporter (Exporter) – the Exporter
  • file_name (str) – the output filename
  • database_path (str) – the associated db path
redo(self)[source]
undo(self)[source]
class spinetoolbox.project_items.exporter.commands.UpdateScenario(exporter, scenario, database_url)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Parameters:
  • exporter (Exporter) – the Exporter
  • scenario (str, optional) – new scenario name
  • database_url (str) – database URL
redo(self)[source]
undo(self)[source]
class spinetoolbox.project_items.exporter.commands.UpdateExporterSettings(exporter, settings, indexing_settings, merging_settings, none_fallback, none_export, database_path)[source]

Bases: spinetoolbox.project_commands.SpineToolboxCommand

Command to update Exporter settings.

Parameters:
  • exporter (Exporter) – the Exporter
  • settings (SetSettings) – gdx settings
  • indexing_settings (dict) – parameter indexing settings
  • merging_settings (dict) – parameter merging settings
  • none_fallback (NoneFallback) – fallback option on None values
  • none_export (NoneExport) – how to handle Nones while exporting
  • database_path (str) – the db path to update settings for
redo(self)[source]
undo(self)[source]