comparison sat/plugins/plugin_adhoc_dbus.py @ 3040:fee60f17ebac

jp: jp asyncio port: /!\ this commit is huge. Jp is temporarily not working with `dbus` bridge /!\ This patch implements the port of jp to asyncio, so it is now correctly using the bridge asynchronously, and it can be used with bridges like `pb`. This also simplify the code, notably for things which were previously implemented with many callbacks (like pagination with RSM). During the process, some behaviours have been modified/fixed, in jp and backends, check diff for details.
author Goffi <goffi@goffi.org>
date Wed, 25 Sep 2019 08:56:41 +0200
parents ab2696e34d29
children 7f7cdc6ecfd8
comparison
equal deleted inserted replaced
3039:a1bc34f90fa5 3040:fee60f17ebac
234 forbidden_jids=forbidden_jids, 234 forbidden_jids=forbidden_jids,
235 forbidden_groups=forbidden_groups, 235 forbidden_groups=forbidden_groups,
236 flags=flags, 236 flags=flags,
237 ) 237 )
238 238
239 defer.returnValue((bus_name, methods)) 239 defer.returnValue((str(bus_name), methods))
240 240
241 def _addCommand(self, client, adhoc_name, bus_name, methods, allowed_jids=None, 241 def _addCommand(self, client, adhoc_name, bus_name, methods, allowed_jids=None,
242 allowed_groups=None, allowed_magics=None, forbidden_jids=None, 242 allowed_groups=None, allowed_magics=None, forbidden_jids=None,
243 forbidden_groups=None, flags=None): 243 forbidden_groups=None, flags=None):
244 if flags is None: 244 if flags is None: