Skip to content

Commit

Permalink
Merge pull request #844 from ynput/enhancement/create-api-restructure
Browse files Browse the repository at this point in the history
Create api: Restructure
  • Loading branch information
iLLiCiTiT authored Aug 28, 2024
2 parents 8d9187f + 237e17b commit 7a89d22
Show file tree
Hide file tree
Showing 10 changed files with 1,401 additions and 1,338 deletions.
57 changes: 47 additions & 10 deletions client/ayon_core/pipeline/create/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,41 @@
PRE_CREATE_THUMBNAIL_KEY,
DEFAULT_VARIANT_VALUE,
)

from .exceptions import (
UnavailableSharedData,
ImmutableKeyError,
HostMissRequiredMethod,
ConvertorsOperationFailed,
ConvertorsFindFailed,
ConvertorsConversionFailed,
CreatorError,
CreatorsCreateFailed,
CreatorsCollectionFailed,
CreatorsSaveFailed,
CreatorsRemoveFailed,
CreatorsOperationFailed,
TaskNotSetError,
TemplateFillError,
)
from .structures import (
CreatedInstance,
ConvertorItem,
AttributeValues,
CreatorAttributeValues,
PublishAttributeValues,
PublishAttributes,
)
from .utils import (
get_last_versions_for_instances,
get_next_versions_for_instances,
)

from .product_name import (
TaskNotSetError,
get_product_name,
get_product_name_template,
)

from .creator_plugins import (
CreatorError,

BaseCreator,
Creator,
AutoCreator,
Expand All @@ -36,10 +56,7 @@
cache_and_get_instances,
)

from .context import (
CreatedInstance,
CreateContext
)
from .context import CreateContext

from .legacy_create import (
LegacyCreator,
Expand All @@ -53,10 +70,31 @@
"PRE_CREATE_THUMBNAIL_KEY",
"DEFAULT_VARIANT_VALUE",

"UnavailableSharedData",
"ImmutableKeyError",
"HostMissRequiredMethod",
"ConvertorsOperationFailed",
"ConvertorsFindFailed",
"ConvertorsConversionFailed",
"CreatorError",
"CreatorsCreateFailed",
"CreatorsCollectionFailed",
"CreatorsSaveFailed",
"CreatorsRemoveFailed",
"CreatorsOperationFailed",
"TaskNotSetError",
"TemplateFillError",

"CreatedInstance",
"ConvertorItem",
"AttributeValues",
"CreatorAttributeValues",
"PublishAttributeValues",
"PublishAttributes",

"get_last_versions_for_instances",
"get_next_versions_for_instances",

"TaskNotSetError",
"get_product_name",
"get_product_name_template",

Expand All @@ -78,7 +116,6 @@

"cache_and_get_instances",

"CreatedInstance",
"CreateContext",

"LegacyCreator",
Expand Down
Loading

0 comments on commit 7a89d22

Please sign in to comment.