From 46f284ed15a4bdaf643f7bb9525f340b2117b0a9 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 21 Jun 2021 19:37:57 +0200 Subject: [PATCH 1/2] Show a missing attribute as `<` are `>` used as html tags --- openpype/modules/ftrack/lib/avalon_sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpype/modules/ftrack/lib/avalon_sync.py b/openpype/modules/ftrack/lib/avalon_sync.py index 5d1da005dc..85c8d5a273 100644 --- a/openpype/modules/ftrack/lib/avalon_sync.py +++ b/openpype/modules/ftrack/lib/avalon_sync.py @@ -402,9 +402,9 @@ class SyncEntitiesFactory: items = [] items.append({ "type": "label", - "value": "# Can't access Custom attribute <{}>".format( - CUST_ATTR_ID_KEY - ) + "value": ( + "# Can't access Custom attribute: \"{}\"" + ).format(CUST_ATTR_ID_KEY) }) items.append({ "type": "label", From ca26f56c2662cb70d1b611eb963c52594e6d317e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 21 Jun 2021 19:38:02 +0200 Subject: [PATCH 2/2] better message --- openpype/modules/ftrack/lib/avalon_sync.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openpype/modules/ftrack/lib/avalon_sync.py b/openpype/modules/ftrack/lib/avalon_sync.py index 85c8d5a273..2458308af5 100644 --- a/openpype/modules/ftrack/lib/avalon_sync.py +++ b/openpype/modules/ftrack/lib/avalon_sync.py @@ -409,9 +409,11 @@ class SyncEntitiesFactory: items.append({ "type": "label", "value": ( - "

- Check if user \"{}\" has permissions" - " to access the Custom attribute

" - ).format(self._api_key) + "

- Check if your User and API key has permissions" + " to access the Custom attribute." + "
Username:\"{}\"" + "
API key:\"{}\"

" + ).format(self._api_user, self._api_key) }) items.append({ "type": "label",