moved FPS_KEYS to constants

This commit is contained in:
Jakub Trllo 2022-03-03 15:29:30 +01:00
parent f88bf7b5be
commit 630c819336
4 changed files with 13 additions and 10 deletions

View file

@ -20,6 +20,7 @@ from openpype_modules.ftrack.lib import (
query_custom_attributes,
CUST_ATTR_ID_KEY,
CUST_ATTR_AUTO_SYNC,
FPS_KEYS,
avalon_sync,
@ -27,8 +28,7 @@ from openpype_modules.ftrack.lib import (
)
from openpype_modules.ftrack.lib.avalon_sync import (
convert_to_fps,
InvalidFpsValue,
FPS_KEYS
InvalidFpsValue
)
from openpype.lib import CURRENT_DOC_SCHEMAS

View file

@ -4,7 +4,8 @@ from .constants import (
CUST_ATTR_GROUP,
CUST_ATTR_TOOLS,
CUST_ATTR_APPLICATIONS,
CUST_ATTR_INTENT
CUST_ATTR_INTENT,
FPS_KEYS
)
from .settings import (
get_ftrack_event_mongo_info
@ -30,6 +31,8 @@ __all__ = (
"CUST_ATTR_GROUP",
"CUST_ATTR_TOOLS",
"CUST_ATTR_APPLICATIONS",
"CUST_ATTR_INTENT",
"FPS_KEYS",
"get_ftrack_event_mongo_info",

View file

@ -17,7 +17,7 @@ from openpype.api import (
)
from openpype.lib import ApplicationManager
from .constants import CUST_ATTR_ID_KEY
from .constants import CUST_ATTR_ID_KEY, FPS_KEYS
from .custom_attributes import get_openpype_attr, query_custom_attributes
from bson.objectid import ObjectId
@ -35,12 +35,6 @@ CURRENT_DOC_SCHEMAS = {
"config": "openpype:config-2.0"
}
FPS_KEYS = {
"fps",
# For development purposes
"fps_string"
}
class InvalidFpsValue(Exception):
pass

View file

@ -12,3 +12,9 @@ CUST_ATTR_APPLICATIONS = "applications"
CUST_ATTR_TOOLS = "tools_env"
# Intent custom attribute name
CUST_ATTR_INTENT = "intent"
FPS_KEYS = {
"fps",
# For development purposes
"fps_string"
}