Skip to content

tools

DiscoverValidationModel

Bases: BaseSettingsModel

Strictly validate publish plugins discovery.

Artist won't be able to publish if path to publish plugin fails to be imported.

Source code in server/settings/tools.py
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
class DiscoverValidationModel(BaseSettingsModel):
    """Strictly validate publish plugins discovery.

    Artist won't be able to publish if path to publish plugin fails to be
        imported.

    """
    _isGroup = True
    enabled: bool = SettingsField(
        False,
        description="Enable strict mode of plugins discovery",
    )
    ignore_paths: list[str] = SettingsField(
        default_factory=list,
        title="Ignored paths (regex)",
        description=(
            "Paths that do match regex will be skipped in validation."
        ),
    )

FilterCreatorProfile

Bases: BaseSettingsModel

Provide list of allowed Creator identifiers for context

Source code in server/settings/tools.py
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
class FilterCreatorProfile(BaseSettingsModel):
    """Provide list of allowed Creator identifiers for context"""

    _layout = "expanded"
    host_names: list[str] = SettingsField(
        default_factory=list, title="Host names"
    )
    task_types: list[str] = SettingsField(
        default_factory=list,
        title="Task types",
        enum_resolver=task_types_enum
    )
    task_names: list[str] = SettingsField(
        default_factory=list,
        title="Task names")
    creator_labels: list[str] = SettingsField(
        default_factory=list,
        title="Allowed Creator Labels",
        description="Copy creator label from Publisher, regex supported."
    )