spinetoolbox.project_item_specification_factory

Contains project item specification factory.

authors:
  1. Soininen (VTT)
date:

6.5.2020

Module Contents

Classes

ProjectItemSpecificationFactory A factory to make project item specifications.
class spinetoolbox.project_item_specification_factory.ProjectItemSpecificationFactory[source]

A factory to make project item specifications.

static item_type()[source]

Returns the project item’s type.

static make_specification(definition, definition_path, app_settings, logger, embedded_julia_console, embedded_python_console)[source]

Makes a project item specification.

Parameters:
  • definition (dict) – specification’s definition dictionary
  • definition_path (str) – path to the definition file
  • app_settings (QSettings) – Toolbox settings
  • logger (LoggerInterface) – a logger
  • embedded_julia_console (JuliaREPLWidget, optional) – a console widget for specifications that need one
  • embedded_python_console (PythonReplWidget, optional) – a console widget for specifications that need one
Returns:

a specification built from the given definition

Return type:

ProjectItemSpecification