Mercurial > libervia-backend
diff libervia/backend/core/xmpp.py @ 4182:4dc00e848961
core (tools/trigger): new `add_with_check` method:
this method add a wrapper which will skip the trigger is the plugin is not available in
the session (e.g. a component which doesn't use the plugin).
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 09 Dec 2023 19:19:26 +0100 |
parents | d67eaa684484 |
children | 314d3c02bb67 |
line wrap: on
line diff
--- a/libervia/backend/core/xmpp.py Sat Dec 09 19:17:34 2023 +0100 +++ b/libervia/backend/core/xmpp.py Sat Dec 09 19:19:26 2023 +0100 @@ -139,7 +139,8 @@ - profile_connected* triggers (to call after connection) """ plugin_conn_cb = [] - for plugin in self._get_plugins_list(): + self.plugins = plugins = self._get_plugins_list() + for plugin in plugins: # we check if plugin handle client mode if plugin.is_handler: plugin.get_handler(self).setHandlerParent(self)