mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +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 (
|
||||
CreatorError,
|
||||
|
||||
|
|
@ -13,6 +16,8 @@ from .context import (
|
|||
|
||||
|
||||
__all__ = (
|
||||
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
||||
|
||||
"CreatorError",
|
||||
|
||||
"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)
|
||||
# - characters, numbers, unsercore and dash
|
||||
SUBSET_NAME_ALLOWED_SYMBOLS = "a-zA-Z0-9_."
|
||||
VARIANT_TOOLTIP = (
|
||||
"Variant may contain alphabetical characters (a-Z)"
|
||||
"\nnumerical characters (0-9) dot (\".\") or underscore (\"_\")."
|
||||
|
|
@ -23,7 +22,6 @@ FAMILY_ROLE = QtCore.Qt.UserRole + 5
|
|||
__all__ = (
|
||||
"CONTEXT_ID",
|
||||
|
||||
"SUBSET_NAME_ALLOWED_SYMBOLS",
|
||||
"VARIANT_TOOLTIP",
|
||||
|
||||
"INSTANCE_ID_ROLE",
|
||||
|
|
|
|||
|
|
@ -9,11 +9,13 @@ except Exception:
|
|||
commonmark = None
|
||||
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 ..constants import (
|
||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
||||
VARIANT_TOOLTIP,
|
||||
CREATOR_IDENTIFIER_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.tools.flickcharm import FlickCharm
|
||||
|
||||
from openpype.pipeline.create import SUBSET_NAME_ALLOWED_SYMBOLS
|
||||
from .models import (
|
||||
AssetsHierarchyModel,
|
||||
TasksModel,
|
||||
|
|
@ -21,7 +21,6 @@ from .icons import (
|
|||
)
|
||||
|
||||
from ..constants import (
|
||||
SUBSET_NAME_ALLOWED_SYMBOLS,
|
||||
VARIANT_TOOLTIP
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue