moved SUBSET_NAME_ALLOWED_SYMBOLS to pipeline/create/constants

This commit is contained in:
iLLiCiTiT 2021-11-12 22:31:13 +01:00
parent 100eaa6de7
commit cb4b014800
5 changed files with 16 additions and 6 deletions

View file

@ -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",

View file

@ -0,0 +1,6 @@
SUBSET_NAME_ALLOWED_SYMBOLS = "a-zA-Z0-9_."
__all__ = (
"SUBSET_NAME_ALLOWED_SYMBOLS",
)

View file

@ -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",

View file

@ -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

View file

@ -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
)