comparison libervia/server/pages_tools.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 822bd0139769
children 106bae41f5c8
comparison
equal deleted inserted replaced
1446:e5dc0b0658af 1447:907f519faaf0
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 2
3 3 # Libervia Web frontend
4 # Libervia: a Salut à Toi frontend
5 # Copyright (C) 2011-2021 Jérôme Poisson <goffi@goffi.org> 4 # Copyright (C) 2011-2021 Jérôme Poisson <goffi@goffi.org>
6 5
7 # This program is free software: you can redistribute it and/or modify 6 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as published by 7 # it under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or 8 # the Free Software Foundation, either version 3 of the License, or
41 @param profile(unicode): profile of the user willing to find comments 40 @param profile(unicode): profile of the user willing to find comments
42 @param pass_exceptions(bool): if True bridge exceptions will be ignored but logged 41 @param pass_exceptions(bool): if True bridge exceptions will be ignored but logged
43 else exception will be raised 42 else exception will be raised
44 """ 43 """
45 try: 44 try:
46 d = self.host.bridgeCall("mbGet", service, node, C.NO_LIMIT, [], {}, profile) 45 d = self.host.bridgeCall(
46 "mbGet", service, node, C.NO_LIMIT, [], data_format.serialise({}), profile
47 )
47 except Exception as e: 48 except Exception as e:
48 if not pass_exceptions: 49 if not pass_exceptions:
49 raise e 50 raise e
50 else: 51 else:
51 log.warning( 52 log.warning(