Mercurial > libervia-backend
diff src/bridge/bridge_constructor/bridge_constructor.py @ 1072:d123d61976c8
bridge (D-Bus): frontend side now use a 120 s timeout for async calls
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 15 Jun 2014 00:18:28 +0200 |
parents | 95758ef3faa8 |
children | c1e916594e09 |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_constructor.py Sat Jun 14 17:26:22 2014 +0200 +++ b/src/bridge/bridge_constructor/bridge_constructor.py Sun Jun 15 00:18:28 2014 +0200 @@ -450,7 +450,7 @@ completion['args_result'] = self.getArguments(function['sig_in'], name=arg_doc) completion['async_args'] = 'callback=None, errback=None' if async else '' completion['async_comma'] = ', ' if async and function['sig_in'] else '' - completion['async_args_result'] = 'reply_handler=callback, error_handler=lambda err:errback(dbus_to_bridge_exception(err))' if async else '' + completion['async_args_result'] = 'timeout=const_TIMEOUT, reply_handler=callback, error_handler=lambda err:errback(dbus_to_bridge_exception(err))' if async else '' result = "self.db_%(category)s_iface.%(name)s(%(args_result)s%(async_comma)s%(async_args_result)s)" % completion completion['result'] = ("unicode(%s)" if self.options.unicode and function['sig_out'] == 's' else "%s") % result methods_part.append("""\