tests/svghmi/py_ext_0@py_ext/pyfile.xml
branchsvghmi
changeset 3034 793ce2117258
parent 3031 440d74319a74
child 3036 4930455428df
--- a/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Fri Aug 21 13:22:54 2020 +0200
+++ b/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Fri Aug 21 14:29:03 2020 +0200
@@ -2,7 +2,7 @@
 <PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <variables>
     <variable name="SomePLCglobal" type="HMI_STRING" onchange="MyOnChangeFunc"/>
-    <variable name="AlarmCount" type="HMI_INT"/>
+    <variable name="AlarmNotify" type="HMI_INT"/>
   </variables>
   <globals>
     <xhtml:p><![CDATA[
@@ -14,9 +14,9 @@
         return ''
 
     def render_POST(self, request):
-        print(request.__dict__)
         newdata = request.content.getvalue()
         print newdata
+        print json.loads(newdata)
         selected_alarms = [
             {"name":"three", "sides":3, "textstyle":"alarm"},
             {"name":"four", "sides":4, "textstyle":"ack"},