Mercurial > libervia-web
diff libervia/pages/lists/view/page_meta.py @ 1483:595e7fef41f3
merge bookmark @
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 12 Nov 2021 17:48:30 +0100 |
parents | d62df81440c6 915c7c2f1729 |
children | 106bae41f5c8 |
line wrap: on
line diff
--- a/libervia/pages/lists/view/page_meta.py Tue Sep 28 18:18:37 2021 +0200 +++ b/libervia/pages/lists/view/page_meta.py Fri Nov 12 17:48:30 2021 +0100 @@ -32,6 +32,10 @@ data = self.getRData(request) template_data = request.template_data service, node = data["service"], data["node"] + submitted_node = await self.host.bridgeCall( + "psSchemaSubmittedNodeGet", + node or self.host.ns_map["tickets"] + ) profile = self.getProfile(request) or C.SERVICE_PROFILE self.checkCache(request, C.CACHE_PUBSUB, service=service, node=node, short="tickets") @@ -47,7 +51,7 @@ schema_raw = await self.host.bridgeCall( "psSchemaDictGet", service.full(), - node or self.host.ns_map["tickets"], + submitted_node, profile ) schema = data_format.deserialise(schema_raw) @@ -86,11 +90,13 @@ affiliations = await self.host.bridgeCall( "psNodeAffiliationsGet", service.full() if service else "", - node, + submitted_node, profile ) except BridgeException as e: - log.warning(f"Can't get affiliations for node {node!r} at {service}: {e}") + log.warning( + f"Can't get affiliations for node {submitted_node!r} at {service}: {e}" + ) template_data["owner"] = False else: is_owner = affiliations.get(self.getJid(request).userhost()) == 'owner'