Skip to content

publish_plugins

IntegrateReviewablesModel

Bases: BaseSettingsModel

Settings for Integrate SyncSketch reviewable plugin.

Source code in server/settings/publish_plugins.py
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class IntegrateReviewablesModel(BaseSettingsModel):
    """Settings for Integrate SyncSketch reviewable plugin."""

    representation_tag: str = SettingsField(
        title="Representations' activation tag",
        disabled=True,
        description=(
            "This is just for information and cannot be changed. "
            "This meant to be copy pasted to the tag field of "
            "the representation you want to upload to SyncSketch."
        )
    )
    review_item_profiles: list[ReviewItemProfile] = SettingsField(
        default_factory=list,
        title="Review item profiles"
    )

    @validator("review_item_profiles")
    def ensure_unique_names(cls, value):
        """Ensure name fields within the lists have unique names."""
        ensure_unique_names(value)
        return value

ensure_unique_names(value)

Ensure name fields within the lists have unique names.

Source code in server/settings/publish_plugins.py
47
48
49
50
51
@validator("review_item_profiles")
def ensure_unique_names(cls, value):
    """Ensure name fields within the lists have unique names."""
    ensure_unique_names(value)
    return value