spinetoolbox.project_items.exporter.worker

A worker based machinery to construct the settings data structures needed for gdx export outside the UI loop.

author:
  1. Soininen (VTT)
date:

19.12.2019

Module Contents

class spinetoolbox.project_items.exporter.worker.Worker(database_url)[source]

Bases: PySide2.QtCore.QThread

A worker thread to construct export settings for a database.

Parameters:database_url (str) – database’s URL
errored[source]

Emitted when an error occurs.

finished[source]

Emitted when the worker has finished.

indexing_domains_read[source]

Sends new additional domains away.

indexing_settings_read[source]

Sends the indexing settings away.

merging_settings_read[source]

Sends updated merging settings away.

merging_domains_read[source]

Sends updated merging domains away.

settings_read[source]

Sends the settings away.

reset_previous_settings(self)[source]

Makes worker send new settings instead of updating old ones.

run(self)[source]

Constructs settings and parameter index settings and sends them to interested parties using signals.

set_previous_settings(self, previous_settings, previous_indexing_settings, previous_indexing_domains, previous_merging_settings)[source]

Makes worker update existing settings instead of just making new ones.

Parameters:
  • previous_settings (Settings) – existing settings
  • previous_indexing_settings (dict) – existing indexing settings
  • previous_indexing_domains (list) –
  • previous_merging_settings (dict) – existing merging settings
_read_settings(self)[source]
_update_indexing_settings(self, updated_settings, new_indexing_settings)[source]
_update_merging_settings(self, updated_settings)[source]