--- a/PLCControler.py Mon Aug 21 23:22:58 2017 +0300
+++ b/PLCControler.py Tue Aug 22 12:45:06 2017 +0300
@@ -1738,9 +1738,8 @@
for datatype in project.getdataTypes(name)
- if ((not only_locatables or self.IsLocatableDataType(datatype, debug))
- len(self.GetInstanceList(datatype, name, debug)) == 0))])
+ if ((not only_locatables or self.IsLocatableDataType(datatype, debug)) and + (name is None or len(self.GetInstanceList(datatype, name, debug)) == 0))]) for category in self.GetConfNodeDataTypes(name, only_locatables):
datatypes.extend(category["list"])
--- a/connectors/__init__.py Mon Aug 21 23:22:58 2017 +0300
+++ b/connectors/__init__.py Tue Aug 22 12:45:06 2017 +0300
@@ -38,8 +38,8 @@
_GetLocalConnectorClassFactory(name)
for name in listdir(_base_path)
- if (path.isdir(path.join(_base_path, name))
- and not name.startswith("__"))}
+ if (path.isdir(path.join(_base_path, name)) and + not name.startswith("__"))} def ConnectorFactory(uri, confnodesroot):
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Mon Aug 21 23:22:58 2017 +0300
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Tue Aug 22 12:45:06 2017 +0300
@@ -1088,8 +1088,8 @@
canvas_ratio = 1. / height # Divide by canvas height in pixel
- (1.0 - (CANVAS_BORDER[0] + CANVAS_BORDER[1]) * canvas_ratio)
- * height) # Divide by figure height in pixel
+ (1.0 - (CANVAS_BORDER[0] + CANVAS_BORDER[1]) * canvas_ratio) * + height) # Divide by figure height in pixel # Update position of figure (keeping up and bottom border the same
--- a/svgui/pyjs/pyjs.py Mon Aug 21 23:22:58 2017 +0300
+++ b/svgui/pyjs/pyjs.py Tue Aug 22 12:45:06 2017 +0300
@@ -546,11 +546,11 @@
call_this, method_name = call_name.rsplit(".", 1)
# Must be a function call ...
- return ("pyjs_kwargs_function_call("+call_name+", "
- + star_arg_name + ", ["+fn_args+"]" + ")")
+ return ("pyjs_kwargs_function_call("+call_name+", " + + star_arg_name + ", ["+fn_args+"]" + ")") - return ("pyjs_kwargs_method_call("+call_this+", '"+method_name+"', "
- + star_arg_name + ", ["+fn_args+"]" + ")")
+ return ("pyjs_kwargs_method_call("+call_this+", '"+method_name+"', " + + star_arg_name + ", ["+fn_args+"]" + ")") return call_name + "(" + ", ".join(call_args) + ")"
@@ -1016,9 +1016,9 @@
' st = sys.printstack() + ' + '"%s"' % lt + "+ '\\n' ;"
- ' alert("' + 'Error in ' + lt + '"'
- + '+"\\n"+__err.name+": "+__err.message'
- + '+"\\n\\nStack trace:\\n"' + '+st' + ');',
+ ' alert("' + 'Error in ' + lt + '"' + + '+"\\n"+__err.name+": "+__err.message' + + '+"\\n\\nStack trace:\\n"' + '+st' + ');', ' throw new ' + self.module_prefix + 'HaltException();',
--- a/targets/__init__.py Mon Aug 21 23:22:58 2017 +0300
+++ b/targets/__init__.py Tue Aug 22 12:45:06 2017 +0300
@@ -51,8 +51,8 @@
if (fname.startswith("plc_%s_main" % name) and
for name in listdir(_base_path)
- if (path.isdir(path.join(_base_path, name))
- and not name.startswith("__"))])
+ if (path.isdir(path.join(_base_path, name)) and + not name.startswith("__"))]) toolchains = {"gcc": path.join(_base_path, "XSD_toolchain_gcc"),
"makefile": path.join(_base_path, "XSD_toolchain_makefile")}