mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
#1976 - explicitly remove namespace in some cases
Used cls instead of class name
This commit is contained in:
parent
eef59e6fff
commit
39341b1c2b
1 changed files with 6 additions and 9 deletions
|
|
@ -410,8 +410,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
Used for Setting UI to provide forms.
|
||||
"""
|
||||
scope = EditableScopes.SYSTEM
|
||||
return SyncServerModule._get_configurable_items_for_provider(
|
||||
provider_name, scope)
|
||||
return cls._get_configurable_items_for_provider(provider_name, scope)
|
||||
|
||||
@classmethod
|
||||
def get_project_configurable_items_for_provider(cls, provider_name):
|
||||
|
|
@ -420,8 +419,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
It is not using Setting! Used for Setting UI to provide forms.
|
||||
"""
|
||||
scope = EditableScopes.PROJECT
|
||||
return SyncServerModule._get_configurable_items_for_provider(
|
||||
provider_name, scope)
|
||||
return cls._get_configurable_items_for_provider(provider_name, scope)
|
||||
|
||||
@classmethod
|
||||
def get_system_configurable_items_for_providers(cls):
|
||||
|
|
@ -433,8 +431,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
ret_dict = {}
|
||||
for provider_name in lib.factory.providers:
|
||||
ret_dict[provider_name] = \
|
||||
SyncServerModule._get_configurable_items_for_provider(
|
||||
provider_name, scope)
|
||||
cls._get_configurable_items_for_provider(provider_name, scope)
|
||||
|
||||
return ret_dict
|
||||
|
||||
|
|
@ -448,8 +445,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
ret_dict = {}
|
||||
for provider_name in lib.factory.providers:
|
||||
ret_dict[provider_name] = \
|
||||
SyncServerModule._get_configurable_items_for_provider(
|
||||
provider_name, scope)
|
||||
cls._get_configurable_items_for_provider(provider_name, scope)
|
||||
|
||||
return ret_dict
|
||||
|
||||
|
|
@ -469,7 +465,8 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
item = items[key]
|
||||
if scope in item["scope"]:
|
||||
item.pop("scope") # unneeded by UI
|
||||
item.pop("namespace", None) # unneeded by UI
|
||||
if scope in [EditableScopes.SYSTEM, EditableScopes.PROJECT]:
|
||||
item.pop("namespace", None) # unneeded by UI
|
||||
ret.append(item)
|
||||
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue