comparison libervia/server/pages_tools.py @ 1216:b2d067339de3

python 3 port: /!\ Python 3.6+ is now needed to use libervia /!\ instability may occur and features may not be working anymore, this will improve with time /!\ TxJSONRPC dependency has been removed The same procedure as in backend has been applied (check backend commit ab2696e34d29 logs for details). Removed now deprecated code (Pyjamas compiled browser part, legacy blog, JSON RPC related code). Adapted code to work without `html` and `themes` dirs.
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:12:31 +0200
parents 2af117bfe6cc
children 987595a254b0
comparison
equal deleted inserted replaced
1215:f14ab8a25e8b 1216:b2d067339de3
40 @param profile(unicode): profile of the user willing to find comments 40 @param profile(unicode): profile of the user willing to find comments
41 @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
42 else exception will be raised 42 else exception will be raised
43 """ 43 """
44 try: 44 try:
45 d = self.host.bridgeCall(u"mbGet", service, node, C.NO_LIMIT, [], {}, profile) 45 d = self.host.bridgeCall("mbGet", service, node, C.NO_LIMIT, [], {}, profile)
46 except Exception as e: 46 except Exception as e:
47 if not pass_exceptions: 47 if not pass_exceptions:
48 raise e 48 raise e
49 else: 49 else:
50 log.warning( 50 log.warning(
51 _(u"Can't get comments at {node} (service: {service}): {msg}").format( 51 _("Can't get comments at {node} (service: {service}): {msg}").format(
52 service=service, node=node, msg=e 52 service=service, node=node, msg=e
53 ) 53 )
54 ) 54 )
55 return defer.succeed([]) 55 return defer.succeed([])
56 56