comparison libervia/pages/lists/view_item/page_meta.py @ 1447:907f519faaf0

pages: pubsub's `extra` is now serialised, following backend change
author Goffi <goffi@goffi.org>
date Thu, 29 Jul 2021 23:01:29 +0200
parents a84383c659b4
children 595e7fef41f3
comparison
equal deleted inserted replaced
1446:e5dc0b0658af 1447:907f519faaf0
62 uri_data = uri.parseXMPPUri(comments_uri) 62 uri_data = uri.parseXMPPUri(comments_uri)
63 template_data["comments_node"] = comments_node = uri_data["node"] 63 template_data["comments_node"] = comments_node = uri_data["node"]
64 template_data["comments_service"] = comments_service = uri_data["path"] 64 template_data["comments_service"] = comments_service = uri_data["path"]
65 try: 65 try:
66 comments = data_format.deserialise(await self.host.bridgeCall( 66 comments = data_format.deserialise(await self.host.bridgeCall(
67 "mbGet", comments_service, comments_node, C.NO_LIMIT, [], {}, profile 67 "mbGet", comments_service, comments_node, C.NO_LIMIT, [],
68 data_format.serialise({}), profile
68 )) 69 ))
69 except BridgeException as e: 70 except BridgeException as e:
70 if e.classname == 'NotFound' or e.condition == 'item-not-found': 71 if e.classname == 'NotFound' or e.condition == 'item-not-found':
71 log.warning( 72 log.warning(
72 _("Can't find comment node at [{service}] {node!r}") 73 _("Can't find comment node at [{service}] {node!r}")