mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Photoshop: Fix removed unsupported Path (#5996)
* Fix removed unsupported Path Path is not json serializable by default, it is not necessary, better model reused. * Fix wrong key Must be 'path', not 'template_path' as workfile builder expects the former one.
This commit is contained in:
parent
50feef81f8
commit
1721563a5f
1 changed files with 8 additions and 20 deletions
|
|
@ -1,31 +1,18 @@
|
|||
from pydantic import Field
|
||||
from pathlib import Path
|
||||
|
||||
from ayon_server.settings import BaseSettingsModel
|
||||
|
||||
|
||||
class PathsTemplate(BaseSettingsModel):
|
||||
windows: Path = Field(
|
||||
'',
|
||||
title="Windows"
|
||||
)
|
||||
darwin: Path = Field(
|
||||
'',
|
||||
title="MacOS"
|
||||
)
|
||||
linux: Path = Field(
|
||||
'',
|
||||
title="Linux"
|
||||
)
|
||||
from ayon_server.settings import BaseSettingsModel, MultiplatformPathModel
|
||||
|
||||
|
||||
class CustomBuilderTemplate(BaseSettingsModel):
|
||||
_layout = "expanded"
|
||||
task_types: list[str] = Field(
|
||||
default_factory=list,
|
||||
title="Task types",
|
||||
)
|
||||
template_path: PathsTemplate = Field(
|
||||
default_factory=PathsTemplate
|
||||
|
||||
path: MultiplatformPathModel = Field(
|
||||
default_factory=MultiplatformPathModel,
|
||||
title="Template path"
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -37,5 +24,6 @@ class WorkfileBuilderPlugin(BaseSettingsModel):
|
|||
)
|
||||
|
||||
custom_templates: list[CustomBuilderTemplate] = Field(
|
||||
default_factory=CustomBuilderTemplate
|
||||
default_factory=CustomBuilderTemplate,
|
||||
title="Template profiles"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue