mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #3713 from pypeclub/feature/OP-3789_Remove-constants-from-avalon_context
General: Move constants from lib to client
This commit is contained in:
commit
9c86a2a879
6 changed files with 34 additions and 29 deletions
|
|
@ -13,10 +13,8 @@ from openpype.client import (
|
|||
get_assets,
|
||||
get_asset_ids_with_subsets,
|
||||
)
|
||||
from openpype.lib import (
|
||||
CURRENT_DOC_SCHEMAS,
|
||||
PypeLogger,
|
||||
)
|
||||
from openpype.client.operations import CURRENT_ASSET_DOC_SCHEMA
|
||||
from openpype.lib import Logger
|
||||
|
||||
from .constants import (
|
||||
IDENTIFIER_ROLE,
|
||||
|
|
@ -203,7 +201,7 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
@property
|
||||
def log(self):
|
||||
if self._log is None:
|
||||
self._log = PypeLogger.get_logger("ProjectManagerModel")
|
||||
self._log = Logger.get_logger("ProjectManagerModel")
|
||||
return self._log
|
||||
|
||||
@property
|
||||
|
|
@ -1961,7 +1959,7 @@ class AssetItem(BaseItem):
|
|||
}
|
||||
schema_name = (
|
||||
self._origin_asset_doc.get("schema")
|
||||
or CURRENT_DOC_SCHEMAS["asset"]
|
||||
or CURRENT_ASSET_DOC_SCHEMA
|
||||
)
|
||||
|
||||
doc = {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ from .constants import (
|
|||
NAME_ALLOWED_SYMBOLS,
|
||||
NAME_REGEX
|
||||
)
|
||||
from openpype.lib import (
|
||||
create_project,
|
||||
from openpype.lib import create_project
|
||||
from openpype.client.operations import (
|
||||
PROJECT_NAME_ALLOWED_SYMBOLS,
|
||||
PROJECT_NAME_REGEX
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue