diff sat_frontends/jp/xmlui_manager.py @ 4041:2594e1951cf7

core (bridge): `action_new` now use serialised dict for extra data.
author Goffi <goffi@goffi.org>
date Mon, 15 May 2023 16:20:45 +0200
parents 524856bd7b19
children 4b842c1fb686
line wrap: on
line diff
--- a/sat_frontends/jp/xmlui_manager.py	Mon May 15 16:20:38 2023 +0200
+++ b/sat_frontends/jp/xmlui_manager.py	Mon May 15 16:20:45 2023 +0200
@@ -23,6 +23,7 @@
 from sat_frontends.jp.constants import Const as C
 from sat.tools.common.ansi import ANSI as A
 from sat.core.i18n import _
+from sat.tools.common import data_format
 
 log = getLogger(__name__)
 
@@ -619,10 +620,12 @@
     async def _xmlui_launch_action(self, action_id, data):
         XMLUIPanel._actions += 1
         try:
-            data = await self.host.bridge.action_launch(
-                action_id,
-                data,
-                self.profile,
+            data = data_format.deserialise(
+                await self.host.bridge.action_launch(
+                    action_id,
+                    data_format.serialise(data),
+                    self.profile,
+                )
             )
         except Exception as e:
             self.disp(f"can't launch XMLUI action: {e}", error=True)