altinn_editor_main_view module

class AltinnEditorModule(*args, **kwargs)

Bases: Protocol

Protocol to make mypy accept looping through modules and using the method layout() on them.

layout()

Returns layout.

Return type:

Any

class AltinnSkjemadataEditor(time_units, conn, variable_connection, sidepanels=None, top_panels=None)

Bases: object

A fully functional module for editing Altinn forms.

This module contains submodules with specific functionality.

It requires a set table structure.

Parameters:
  • time_units (list[str])

  • conn (object)

  • variable_connection (dict[str, str])

  • sidepanels (None)

  • top_panels (None)

get_skjemadata_table_names()

Retrieves the names of all the skjemadata-tables in the eimerdb.

Return type:

list[dict[str, str]]

is_valid()

Checks that all VariableSelector options required are defined.

Return type:

None

layout()

Generates the layout for the Altinn Skjemadata Editor tab.

Return type:

Div

module_callbacks()

Defines the callbacks for the module.

Return type:

None

skjemadata_table_selector()

Makes a dropdown for selecting which ‘skjemadata’ table to view.

Return type:

Col