spinetoolbox.load_project_items

Functions to load project item modules.

author:
  1. Soininen (VTT)
date:

29.4.2020

Module Contents

Functions

load_project_items(toolbox) Loads the standard project item modules included in the Toolbox package.
load_item_specification_factories() Loads the project item specification factories in the standard Toolbox package.
load_executable_items() Loads the project item executable classes included in the standard Toolbox package.
spinetoolbox.load_project_items.load_project_items(toolbox)[source]

Loads the standard project item modules included in the Toolbox package.

Parameters:toolbox (ToolboxUI) – Toolbox main widget
Returns:
two dictionaries; first maps item type to its category
while second maps item type to item factory
Return type:tuple of dict
spinetoolbox.load_project_items.load_item_specification_factories()[source]

Loads the project item specification factories in the standard Toolbox package.

Returns:a map from item type to specification factory
Return type:dict
spinetoolbox.load_project_items.load_executable_items()[source]

Loads the project item executable classes included in the standard Toolbox package.

Returns:a map from item type to the executable item class
Return type:dict