mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added logic for roots inputs
This commit is contained in:
parent
f263f812a5
commit
1f329309ce
1 changed files with 23 additions and 1 deletions
|
|
@ -268,10 +268,32 @@ class SitesWidget(QtWidgets.QWidget):
|
|||
self.modules_manager.modules_by_name["sync_server"]
|
||||
)
|
||||
|
||||
return sync_server_module.get_active_sites_from_settings(
|
||||
# This is temporary modification
|
||||
# - whole logic here should be in sync module's providers
|
||||
site_names = sync_server_module.get_active_sites_from_settings(
|
||||
self.project_settings["project_settings"].value
|
||||
)
|
||||
|
||||
roots_entity = (
|
||||
self.project_settings[PROJECT_ANATOMY_KEY][LOCAL_ROOTS_KEY]
|
||||
)
|
||||
|
||||
output = []
|
||||
for site_name in site_names:
|
||||
site_inputs = []
|
||||
for root_name, path_entity in roots_entity.items():
|
||||
platform_entity = path_entity[platform.system().lower()]
|
||||
site_inputs.append({
|
||||
"label": root_name,
|
||||
"key": root_name,
|
||||
"value": platform_entity.value
|
||||
})
|
||||
|
||||
output.append(
|
||||
(site_name, site_inputs)
|
||||
)
|
||||
return output
|
||||
|
||||
@staticmethod
|
||||
def _extract_value_from_data(data, project_name, site_name, key):
|
||||
_s_value = data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue