mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
moved few settings constants to constants.py
This commit is contained in:
parent
2495cffd50
commit
bd791c9719
3 changed files with 37 additions and 4 deletions
|
|
@ -1,3 +1,16 @@
|
|||
from .constants import (
|
||||
GLOBAL_SETTINGS_KEY,
|
||||
SYSTEM_SETTINGS_KEY,
|
||||
PROJECT_SETTINGS_KEY,
|
||||
PROJECT_ANATOMY_KEY,
|
||||
LOCAL_SETTING_KEY,
|
||||
|
||||
SCHEMA_KEY_SYSTEM_SETTINGS,
|
||||
SCHEMA_KEY_PROJECT_SETTINGS,
|
||||
|
||||
KEY_ALLOWED_SYMBOLS,
|
||||
KEY_REGEX
|
||||
)
|
||||
from .exceptions import (
|
||||
SaveWarningExc
|
||||
)
|
||||
|
|
@ -17,6 +30,18 @@ from .entities import (
|
|||
|
||||
|
||||
__all__ = (
|
||||
"GLOBAL_SETTINGS_KEY",
|
||||
"SYSTEM_SETTINGS_KEY",
|
||||
"PROJECT_SETTINGS_KEY",
|
||||
"PROJECT_ANATOMY_KEY",
|
||||
"LOCAL_SETTING_KEY",
|
||||
|
||||
"SCHEMA_KEY_SYSTEM_SETTINGS",
|
||||
"SCHEMA_KEY_PROJECT_SETTINGS",
|
||||
|
||||
"KEY_ALLOWED_SYMBOLS",
|
||||
"KEY_REGEX",
|
||||
|
||||
"SaveWarningExc",
|
||||
|
||||
"get_general_environments",
|
||||
|
|
|
|||
|
|
@ -14,13 +14,17 @@ METADATA_KEYS = (
|
|||
M_DYNAMIC_KEY_LABEL
|
||||
)
|
||||
|
||||
# File where studio's system overrides are stored
|
||||
# Keys where studio's system overrides are stored
|
||||
GLOBAL_SETTINGS_KEY = "global_settings"
|
||||
SYSTEM_SETTINGS_KEY = "system_settings"
|
||||
PROJECT_SETTINGS_KEY = "project_settings"
|
||||
PROJECT_ANATOMY_KEY = "project_anatomy"
|
||||
LOCAL_SETTING_KEY = "local_settings"
|
||||
|
||||
# Schema hub names
|
||||
SCHEMA_KEY_SYSTEM_SETTINGS = "system_schema"
|
||||
SCHEMA_KEY_PROJECT_SETTINGS = "projects_schema"
|
||||
|
||||
DEFAULT_PROJECT_KEY = "__default_project__"
|
||||
|
||||
KEY_ALLOWED_SYMBOLS = "a-zA-Z0-9-_ "
|
||||
|
|
@ -39,6 +43,9 @@ __all__ = (
|
|||
"PROJECT_ANATOMY_KEY",
|
||||
"LOCAL_SETTING_KEY",
|
||||
|
||||
"SCHEMA_KEY_SYSTEM_SETTINGS",
|
||||
"SCHEMA_KEY_PROJECT_SETTINGS",
|
||||
|
||||
"DEFAULT_PROJECT_KEY",
|
||||
|
||||
"KEY_ALLOWED_SYMBOLS",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ from .exceptions import (
|
|||
SchemaDuplicatedEnvGroupKeys
|
||||
)
|
||||
|
||||
from openpype.settings.constants import (
|
||||
SCHEMA_KEY_SYSTEM_SETTINGS,
|
||||
SCHEMA_KEY_PROJECT_SETTINGS
|
||||
)
|
||||
try:
|
||||
STRING_TYPE = basestring
|
||||
except Exception:
|
||||
|
|
@ -25,9 +29,6 @@ TEMPLATE_METADATA_KEYS = (
|
|||
DEFAULT_VALUES_KEY,
|
||||
)
|
||||
|
||||
SCHEMA_KEY_SYSTEM_SETTINGS = "system_schema"
|
||||
SCHEMA_KEY_PROJECT_SETTINGS = "projects_schema"
|
||||
|
||||
SCHEMA_EXTEND_TYPES = (
|
||||
"schema", "template", "schema_template", "dynamic_schema"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue