Mercurial > libervia-web
comparison libervia/pages/blog/view/page_meta.py @ 1487:579250dfe6d0
merge bookmark 0.9
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 Dec 2021 17:43:07 +0100 |
parents | 595e7fef41f3 |
children | 3002ea1d6ae9 |
comparison
equal
deleted
inserted
replaced
1486:6ad203673853 | 1487:579250dfe6d0 |
---|---|
126 comments_data = await self.host.bridgeCall('mbGet', | 126 comments_data = await self.host.bridgeCall('mbGet', |
127 service, | 127 service, |
128 node, | 128 node, |
129 C.NO_LIMIT, | 129 C.NO_LIMIT, |
130 [], | 130 [], |
131 {C.KEY_ORDER_BY: C.ORDER_BY_CREATION}, | 131 data_format.serialise( |
132 {C.KEY_ORDER_BY: C.ORDER_BY_CREATION} | |
133 ), | |
132 profile) | 134 profile) |
133 except Exception as e: | 135 except Exception as e: |
134 log.warning( | 136 log.warning( |
135 _("Can't get comments at {node} (service: {service}): {msg}").format( | 137 _("Can't get comments at {node} (service: {service}): {msg}").format( |
136 service=service, | 138 service=service, |
160 blog_data = await self.host.bridgeCall('mbGet', | 162 blog_data = await self.host.bridgeCall('mbGet', |
161 service.userhost(), | 163 service.userhost(), |
162 node, | 164 node, |
163 C.NO_LIMIT, | 165 C.NO_LIMIT, |
164 items_id, | 166 items_id, |
165 extra, | 167 data_format.serialise(extra), |
166 profile) | 168 profile) |
167 except Exception as e: | 169 except Exception as e: |
168 # FIXME: need a better way to test errors in bridge errback | 170 # FIXME: need a better way to test errors in bridge errback |
169 if "forbidden" in str(e): | 171 if "forbidden" in str(e): |
170 self.pageError(request, 401) | 172 self.pageError(request, 401) |