Mercurial > libervia-backend
diff sat_frontends/jp/cmd_pipe.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 | 877145b4ba01 |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_pipe.py Mon May 15 16:20:38 2023 +0200 +++ b/sat_frontends/jp/cmd_pipe.py Mon May 15 16:20:45 2023 +0200 @@ -17,15 +17,17 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import socket import asyncio import errno from functools import partial +import socket +import sys + +from sat.core.i18n import _ +from sat.tools.common import data_format from sat_frontends.jp import base -from sat_frontends.jp.constants import Const as C from sat_frontends.jp import xmlui_manager -import sys -from sat.core.i18n import _ +from sat_frontends.jp.constants import Const as C from sat_frontends.tools import jid __commands__ = ["Pipe"] @@ -141,7 +143,8 @@ break xmlui_data = {"answer": C.BOOL_TRUE, "port": str(port)} await self.host.bridge.action_launch( - xmlui_id, xmlui_data, profile_key=profile) + xmlui_id, data_format.serialise(xmlui_data), profile_key=profile + ) async with server: await server.serve_forever() self.host.quit_from_signal()