mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
moved SUBSET_NAME_ALLOWED_SYMBOLS to pipeline/create/constants
This commit is contained in:
parent
100eaa6de7
commit
cb4b014800
5 changed files with 16 additions and 6 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
from .constants import (
|
||||||
|
SUBSET_NAME_ALLOWED_SYMBOLS
|
||||||
|
)
|
||||||
from .creator_plugins import (
|
from .creator_plugins import (
|
||||||
CreatorError,
|
CreatorError,
|
||||||
|
|
||||||
|
|
@ -13,6 +16,8 @@ from .context import (
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
||||||
|
|
||||||
"CreatorError",
|
"CreatorError",
|
||||||
|
|
||||||
"BaseCreator",
|
"BaseCreator",
|
||||||
|
|
|
||||||
6
openpype/pipeline/create/constants.py
Normal file
6
openpype/pipeline/create/constants.py
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
SUBSET_NAME_ALLOWED_SYMBOLS = "a-zA-Z0-9_."
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = (
|
||||||
|
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
||||||
|
)
|
||||||
|
|
@ -6,7 +6,6 @@ CONTEXT_LABEL = "Options"
|
||||||
|
|
||||||
# Allowed symbols for subset name (and variant)
|
# Allowed symbols for subset name (and variant)
|
||||||
# - characters, numbers, unsercore and dash
|
# - characters, numbers, unsercore and dash
|
||||||
SUBSET_NAME_ALLOWED_SYMBOLS = "a-zA-Z0-9_."
|
|
||||||
VARIANT_TOOLTIP = (
|
VARIANT_TOOLTIP = (
|
||||||
"Variant may contain alphabetical characters (a-Z)"
|
"Variant may contain alphabetical characters (a-Z)"
|
||||||
"\nnumerical characters (0-9) dot (\".\") or underscore (\"_\")."
|
"\nnumerical characters (0-9) dot (\".\") or underscore (\"_\")."
|
||||||
|
|
@ -23,7 +22,6 @@ FAMILY_ROLE = QtCore.Qt.UserRole + 5
|
||||||
__all__ = (
|
__all__ = (
|
||||||
"CONTEXT_ID",
|
"CONTEXT_ID",
|
||||||
|
|
||||||
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
|
||||||
"VARIANT_TOOLTIP",
|
"VARIANT_TOOLTIP",
|
||||||
|
|
||||||
"INSTANCE_ID_ROLE",
|
"INSTANCE_ID_ROLE",
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,13 @@ except Exception:
|
||||||
commonmark = None
|
commonmark = None
|
||||||
from Qt import QtWidgets, QtCore, QtGui
|
from Qt import QtWidgets, QtCore, QtGui
|
||||||
|
|
||||||
from openpype.pipeline.create import CreatorError
|
from openpype.pipeline.create import (
|
||||||
|
CreatorError,
|
||||||
|
SUBSET_NAME_ALLOWED_SYMBOLS
|
||||||
|
)
|
||||||
|
|
||||||
from .widgets import IconValuePixmapLabel
|
from .widgets import IconValuePixmapLabel
|
||||||
from ..constants import (
|
from ..constants import (
|
||||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
|
||||||
VARIANT_TOOLTIP,
|
VARIANT_TOOLTIP,
|
||||||
CREATOR_IDENTIFIER_ROLE,
|
CREATOR_IDENTIFIER_ROLE,
|
||||||
FAMILY_ROLE
|
FAMILY_ROLE
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ from avalon.vendor import qtawesome
|
||||||
|
|
||||||
from openpype.widgets.attribute_defs import create_widget_for_attr_def
|
from openpype.widgets.attribute_defs import create_widget_for_attr_def
|
||||||
from openpype.tools.flickcharm import FlickCharm
|
from openpype.tools.flickcharm import FlickCharm
|
||||||
|
from openpype.pipeline.create import SUBSET_NAME_ALLOWED_SYMBOLS
|
||||||
from .models import (
|
from .models import (
|
||||||
AssetsHierarchyModel,
|
AssetsHierarchyModel,
|
||||||
TasksModel,
|
TasksModel,
|
||||||
|
|
@ -21,7 +21,6 @@ from .icons import (
|
||||||
)
|
)
|
||||||
|
|
||||||
from ..constants import (
|
from ..constants import (
|
||||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
|
||||||
VARIANT_TOOLTIP
|
VARIANT_TOOLTIP
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue