comparison libervia/server/pages_tools.py @ 1509:106bae41f5c8

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:11 +0200
parents 907f519faaf0
children
comparison
equal deleted inserted replaced
1508:ec3ad9abf9f9 1509:106bae41f5c8
30 30
31 def deserialise(comments_data_s): 31 def deserialise(comments_data_s):
32 return data_format.deserialise(comments_data_s) 32 return data_format.deserialise(comments_data_s)
33 33
34 34
35 def retrieveComments(self, service, node, profile, pass_exceptions=True): 35 def retrieve_comments(self, service, node, profile, pass_exceptions=True):
36 """Retrieve comments from server and convert them to data objects 36 """Retrieve comments from server and convert them to data objects
37 37
38 @param service(unicode): service holding the comments 38 @param service(unicode): service holding the comments
39 @param node(unicode): node to retrieve 39 @param node(unicode): node to retrieve
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( 45 d = self.host.bridge_call(
46 "mbGet", service, node, C.NO_LIMIT, [], data_format.serialise({}), profile 46 "mb_get", service, node, C.NO_LIMIT, [], data_format.serialise({}), profile
47 ) 47 )
48 except Exception as e: 48 except Exception as e:
49 if not pass_exceptions: 49 if not pass_exceptions:
50 raise e 50 raise e
51 else: 51 else: