# HG changeset patch # User Edouard Tisserant # Date 1710487478 -3600 # Node ID 050f227a2848b48cccc7e795c836282d0bc0ff01 # Parent ec3c7e76f69455a37fe7ce434ad66ab55cfa3d49 Tests: update svghmi test project to py3 and erpc diff -r ec3c7e76f694 -r 050f227a2848 tests/projects/svghmi/beremiz.xml --- a/tests/projects/svghmi/beremiz.xml Wed Mar 13 08:38:21 2024 +0100 +++ b/tests/projects/svghmi/beremiz.xml Fri Mar 15 08:24:38 2024 +0100 @@ -1,5 +1,5 @@ - + diff -r ec3c7e76f694 -r 050f227a2848 tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml --- a/tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml Wed Mar 13 08:38:21 2024 +0100 +++ b/tests/projects/svghmi/py_ext_0@py_ext/pyfile.xml Fri Mar 15 08:24:38 2024 +0100 @@ -30,12 +30,12 @@ def render_POST(self, request): newstr = request.content.getvalue() newdata = json.loads(newstr) - args = newdata[u'args'] - range_feedback = newdata[u'range'] - slider_position = newdata[u'position'] - visible = newdata[u'visible'] - extra = newdata[u'extra'] - options = newdata[u'options'] + args = newdata['args'] + range_feedback = newdata['range'] + slider_position = newdata['position'] + visible = newdata['visible'] + extra = newdata['extra'] + options = newdata['options'] if len(options) == 1 : action, = options @@ -49,7 +49,7 @@ answer = self.renderTable(range_feedback, slider_position, visible, extra) janswer = json.dumps(answer) - return janswer + return janswer.encode() def renderTable(self, old_range, old_position, visible, extra): if len(extra) > 0 and extra[0] != "":