mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
* define constant 'DEFAULT_VARIANT_VALUE' * 'get_default_variant' always returns string * added 'default_variant' property for backwards compatibility * added more options to receive default variant * added backwards compatibility for 'default_variant' attribute * better autofix for backwards compatibility * use 'DEFAULT_VARIANT_VALUE' in publisher UI * fix docstring * Use 'Main' instead of 'main' for default variant
86 lines
1.6 KiB
Python
86 lines
1.6 KiB
Python
from .constants import (
|
|
SUBSET_NAME_ALLOWED_SYMBOLS,
|
|
DEFAULT_SUBSET_TEMPLATE,
|
|
PRE_CREATE_THUMBNAIL_KEY,
|
|
DEFAULT_VARIANT_VALUE,
|
|
)
|
|
|
|
from .utils import (
|
|
get_last_versions_for_instances,
|
|
get_next_versions_for_instances,
|
|
)
|
|
|
|
from .subset_name import (
|
|
TaskNotSetError,
|
|
get_subset_name_template,
|
|
get_subset_name,
|
|
)
|
|
|
|
from .creator_plugins import (
|
|
CreatorError,
|
|
|
|
BaseCreator,
|
|
Creator,
|
|
AutoCreator,
|
|
HiddenCreator,
|
|
|
|
discover_legacy_creator_plugins,
|
|
get_legacy_creator_by_name,
|
|
|
|
discover_creator_plugins,
|
|
register_creator_plugin,
|
|
deregister_creator_plugin,
|
|
register_creator_plugin_path,
|
|
deregister_creator_plugin_path,
|
|
|
|
cache_and_get_instances,
|
|
)
|
|
|
|
from .context import (
|
|
CreatedInstance,
|
|
CreateContext
|
|
)
|
|
|
|
from .legacy_create import (
|
|
LegacyCreator,
|
|
legacy_create,
|
|
)
|
|
|
|
|
|
__all__ = (
|
|
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
|
"DEFAULT_SUBSET_TEMPLATE",
|
|
"PRE_CREATE_THUMBNAIL_KEY",
|
|
"DEFAULT_VARIANT_VALUE",
|
|
|
|
"get_last_versions_for_instances",
|
|
"get_next_versions_for_instances",
|
|
|
|
"TaskNotSetError",
|
|
"get_subset_name_template",
|
|
"get_subset_name",
|
|
|
|
"CreatorError",
|
|
|
|
"BaseCreator",
|
|
"Creator",
|
|
"AutoCreator",
|
|
"HiddenCreator",
|
|
|
|
"discover_legacy_creator_plugins",
|
|
"get_legacy_creator_by_name",
|
|
|
|
"discover_creator_plugins",
|
|
"register_creator_plugin",
|
|
"deregister_creator_plugin",
|
|
"register_creator_plugin_path",
|
|
"deregister_creator_plugin_path",
|
|
|
|
"cache_and_get_instances",
|
|
|
|
"CreatedInstance",
|
|
"CreateContext",
|
|
|
|
"LegacyCreator",
|
|
"legacy_create",
|
|
)
|