comparison libervia/pages/blog/view/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 6fc41f000d24
children 595e7fef41f3
comparison
equal deleted inserted replaced
1446:e5dc0b0658af 1447:907f519faaf0
125 comments_data = await self.host.bridgeCall('mbGet', 125 comments_data = await self.host.bridgeCall('mbGet',
126 service, 126 service,
127 node, 127 node,
128 C.NO_LIMIT, 128 C.NO_LIMIT,
129 [], 129 [],
130 {C.KEY_ORDER_BY: C.ORDER_BY_CREATION}, 130 data_format.serialise(
131 {C.KEY_ORDER_BY: C.ORDER_BY_CREATION}
132 ),
131 profile) 133 profile)
132 except Exception as e: 134 except Exception as e:
133 log.warning( 135 log.warning(
134 _("Can't get comments at {node} (service: {service}): {msg}").format( 136 _("Can't get comments at {node} (service: {service}): {msg}").format(
135 service=service, 137 service=service,
151 blog_data = await self.host.bridgeCall('mbGet', 153 blog_data = await self.host.bridgeCall('mbGet',
152 service.userhost(), 154 service.userhost(),
153 node, 155 node,
154 C.NO_LIMIT, 156 C.NO_LIMIT,
155 items_id, 157 items_id,
156 extra, 158 data_format.serialise(extra),
157 profile) 159 profile)
158 except Exception as e: 160 except Exception as e:
159 # FIXME: need a better way to test errors in bridge errback 161 # FIXME: need a better way to test errors in bridge errback
160 if "forbidden" in str(e): 162 if "forbidden" in str(e):
161 self.pageError(request, 401) 163 self.pageError(request, 401)