tests/traffic_lights/svgui-0@svgui/pyfile.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 28 Apr 2016 12:58:58 +0300
changeset 1506 b9b8978dbc9d
parent 1383 45935812f930
child 1546 f1840d27823d
permissions -rw-r--r--
Fix error about missing attribute 'timeout' that happens sometimes during compilation

The fix [1476:49f1763a5613] of the problem with following trace was wrong.
Traceback (most recent call last):
File "./Beremiz.py", line 1229, in run_with_except_hook
run_old(*args, **kw)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 68, in run
self.endcallback(self.Proc.pid, err)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 169, in finish
if self.timeout: self.timeout.cancel()
AttributeError: ProcessLogger instance has no attribute 'timeout'
The problem was that compilation process was finished before the timeout attribute is set.
Now timeout is set before launcing of compilation process.
1383
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     2
<PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     3
  <variables/>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     4
  <globals>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     5
    <xhtml:p><![CDATA[]]></xhtml:p>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     6
  </globals>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     7
  <init>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     8
    <xhtml:p><![CDATA[]]></xhtml:p>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
     9
  </init>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    10
  <cleanup>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    11
    <xhtml:p><![CDATA[]]></xhtml:p>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    12
  </cleanup>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    13
  <start>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    14
    <xhtml:p><![CDATA[]]></xhtml:p>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    15
  </start>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    16
  <stop>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    17
    <xhtml:p><![CDATA[]]></xhtml:p>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    18
  </stop>
45935812f930 Added example of SFC simulating traffic lights
Laurent Bessard
parents:
diff changeset
    19
</PyFile>