mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
marked functions in avalon context as deprecated
This commit is contained in:
parent
c9289630e0
commit
fbe1a773c0
1 changed files with 9 additions and 1 deletions
|
|
@ -528,6 +528,7 @@ def template_data_from_session(session=None):
|
|||
"""
|
||||
|
||||
from openpype.pipeline.context_tools import get_template_data_from_session
|
||||
|
||||
return get_template_data_from_session(session)
|
||||
|
||||
|
||||
|
|
@ -908,6 +909,8 @@ def _get_task_context_data_for_anatomy(
|
|||
return data
|
||||
|
||||
|
||||
@deprecated(
|
||||
"openpype.pipeline.workfile.get_custom_workfile_template_by_context")
|
||||
def get_custom_workfile_template_by_context(
|
||||
template_profiles, project_doc, asset_doc, task_name, anatomy=None
|
||||
):
|
||||
|
|
@ -961,6 +964,9 @@ def get_custom_workfile_template_by_context(
|
|||
return None
|
||||
|
||||
|
||||
@deprecated(
|
||||
"openpype.pipeline.workfile.get_custom_workfile_template_by_string_context"
|
||||
)
|
||||
def get_custom_workfile_template_by_string_context(
|
||||
template_profiles, project_name, asset_name, task_name,
|
||||
dbcon=None, anatomy=None
|
||||
|
|
@ -1005,7 +1011,7 @@ def get_custom_workfile_template_by_string_context(
|
|||
)
|
||||
|
||||
|
||||
@with_pipeline_io
|
||||
@deprecated("openpype.pipeline.context_tools.get_custom_workfile_template")
|
||||
def get_custom_workfile_template(template_profiles):
|
||||
"""Filter and fill workfile template profiles by current context.
|
||||
|
||||
|
|
@ -1020,6 +1026,8 @@ def get_custom_workfile_template(template_profiles):
|
|||
context. (Existence of formatted path is not validated.)
|
||||
"""
|
||||
|
||||
from openpype.pipeline import legacy_io
|
||||
|
||||
return get_custom_workfile_template_by_string_context(
|
||||
template_profiles,
|
||||
legacy_io.Session["AVALON_PROJECT"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue