--- 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 @@
<?xml version='1.0' encoding='utf-8'?>
-<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="PYRO://127.0.0.1:61427">
+<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="ERPC://127.0.0.1">
<TargetType/>
<Libraries Enable_SVGHMI_Library="true"/>
</BeremizRoot>
--- 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] != "":