meta module

class ContextABC

Bases: YamlLoadable

Base class for defining a module operating within a specific database and layout context.

fetcher

The data fetching handler.

Type:

FetcherMeta

settings

The configuration settings for the editor.

Type:

EditorSettings

instance_id

A unique ID to separate distinct instances of modules.

Type:

str

fetcher: FetcherMeta
instance_id: str
set_settings(fetcher, settings, instance_id)

Configures the context variables for the module.

Parameters:
  • fetcher (FetcherMeta) – An implementation of the database query interface.

  • settings (EditorSettings) – Active editor configuration settings.

  • instance_id (str) – A unique identifier for this module instance.

settings: EditorSettings
class FetcherMeta

Bases: YamlLoadable, InforowMeta[EditorSettings], HelperButtonMeta, MicrolayoutMeta[EditorSettings]

Unified data retrieval interface combining all data editor metadata capabilities.

This interface consolidates fetching methods for inforows, sidebars, helper buttons, and microlayout forms to communicate with backend databases.

class ModuleABC

Bases: ContextABC

Base class for defining a layout-rendering helper sidebar or editor component.

fetcher: FetcherMeta
instance_id: str
abstractmethod layout()

Returns the layout of the module.

Return type:

Div

abstractmethod module_callbacks()

Registers callbacks for the module.

Return type:

None

settings: EditorSettings