SyncServer - fill {site} placeholder

Modified namespace for gdrive
This commit is contained in:
Petr Kalis 2021-05-17 10:36:37 +02:00
parent b5bf29b0f2
commit 2053bb7d6d
2 changed files with 3 additions and 1 deletions

View file

@ -113,7 +113,7 @@ class GDriveHandler(AbstractProvider):
EditableScopes.LOCAL],
'label': "Credentials url",
'type': 'text',
'namespace': '{project_setting}/global/sync_server/sites/{site}/{platform}' # noqa: E501
'namespace': '{project_settings}/global/sync_server/sites/{site}/credentials_url/{platform}' # noqa: E501
},
# roots could be override only on Project leve, User cannot
'root': {'scope': [EditableScopes.PROJECT],

View file

@ -573,6 +573,8 @@ class SyncServerModule(PypeModule, ITrayModule):
st = "{}'s field value {} should be".format(key, val) # noqa: E501
log.error(st + " multiplatform dict")
item["namespace"] = item["namespace"].replace('{site}',
site_name)
children = []
if properties["type"] == "dict":
if val: