tests/wxHMI/HMI@wxglade_hmi/hmi.wxg
author |
Andrey Skvortsov <andrej.skvortzov@gmail.com> |
|
Wed, 05 Apr 2017 14:24:52 +0300 |
changeset 1673 |
fab1b8da6eba |
parent 1462 |
9ee3a2dea7e8
|
child 1691 |
9a42f12a973e |
permissions |
-rw-r--r-- |
clean PLC log only if there is something to clean
Otherwise exception happens in Beremiz service.
Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/connectors/PYRO/_init_.py", line 113, in catcher_func
return func(*args, **kwargs)
File "/home/developer/WorkData/PLC/beremiz/beremiz/connectors/PYRO/_init_.py", line 194, in my_local_func
return RemotePLCObjectProxy._getattr_(attrName)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 381, in _call_
return self._send(self._name, args, kwargs)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 456, in _invokePYRO
return self.adapter.remoteInvocation(name, Pyro.constants.RIF_VarargsAndKeywords, vargs, kargs)
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 457, in remoteInvocation
return self._remoteInvocation(method, flags, *args)
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 532, in _remoteInvocation
answer.raiseEx()
File "/usr/lib/python2.7/dist-packages/Pyro/errors.py", line 72, in raiseEx
raise self.excObj
AttributeError: 'PLCObject' object has no attribute '_ResetLogCount'
+--- This exception occured remotely (Pyro) - Remote traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/Pyro/protocol.py", line 719, in _handleInvocation2
res = obj.Pyro_dyncall(req[1],flags,req[3]) # (method,flags,args)
File "/usr/lib/python2.7/dist-packages/Pyro/core.py", line 108, in Pyro_dyncall
return getattr(self.delegate or self,method) (args,*keywords)
File "/home/developer/WorkData/PLC/beremiz/beremiz/runtime/PLCObject.py", line 101, in ResetLogCount
if self._ResetLogCount is not None:
AttributeError: 'PLCObject' object has no attribute '_ResetLogCount'
+--- End of remote traceback
<?xml version="1.0"?>
<!-- generated by wxGlade 0.6.8 on Thu Jun 18 15:19:02 2015 -->
<application path="" name="" class="" option="0" language="python" top_window="wxglade_hmi" encoding="UTF-8" use_gettext="1" overwrite="0" use_new_namespace="1" for_version="2.8" is_template="0" indent_amount="4" indent_symbol="space" source_extension=".cpp" header_extension=".h">
<object class="Class_wxglade_hmi" name="wxglade_hmi" base="EditFrame">
<style>wxCAPTION|wxCLOSE_BOX|wxMINIMIZE_BOX|wxMAXIMIZE|wxMAXIMIZE_BOX|wxSYSTEM_MENU|wxRESIZE_BORDER|wxCLIP_CHILDREN</style>
<title>frame_1</title>
<object class="wxFlexGridSizer" name="grid_sizer_1" base="EditFlexGridSizer">
<hgap>0</hgap>
<growable_rows>0</growable_rows>
<rows>1</rows>
<growable_cols>0</growable_cols>
<cols>4</cols>
<vgap>0</vgap>
<object class="sizeritem">
<flag>wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
<border>0</border>
<option>1</option>
<object class="ThreeDee" name="window_1" base="CustomWidget">
<extracode># WHERE IS THAT ?\nprint "hello"\n</extracode>
<arguments>
<argument>$parent</argument>
<argument>$id</argument>
</arguments>
<size>400,400</size>
</object>
</object>
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>1</option>
<object class="wxFlexGridSizer" name="sizer_1" base="EditFlexGridSizer">
<hgap>0</hgap>
<growable_rows>0</growable_rows>
<rows>2</rows>
<cols>1</cols>
<vgap>0</vgap>
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>1</option>
<object class="wxBoxSizer" name="sizer_2" base="EditBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
</object>
</object>
<object class="sizeritem">
<flag>wxEXPAND</flag>
<border>0</border>
<option>1</option>
<object class="wxGridSizer" name="sizer_3" base="EditGridSizer">
<hgap>0</hgap>
<rows>4</rows>
<cols>2</cols>
<vgap>0</vgap>
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
<object class="sizerslot" />
</object>
</object>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxToggleButton" name="DrawTestBt" base="EditToggleButton">
<label>Please Draw !</label>
<events>
<handler event="EVT_TOGGLEBUTTON">SetPLCGlobalVar</handler>
</events>
<extraproperties>
<property name="Name">"DrawTest"</property>
</extraproperties>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxToggleButton" name="DrawTestBt_copy" base="EditToggleButton">
<label>Please Draw copy !</label>
<events>
<handler event="EVT_TOGGLEBUTTON">SetPLCGlobalVar</handler>
</events>
<extraproperties>
<property name="Name">"DrawEscher"</property>
</extraproperties>
</object>
</object>
</object>
</object>
</application>