--- a/PLCControler.py Mon Jan 27 14:45:12 2014 +0100
+++ b/PLCControler.py Tue Jan 28 16:24:40 2014 +0100
@@ -117,7 +117,7 @@
if lib_name == "project":
lib_el.append(deepcopy(self.Controller.GetProject(self.Debug)))
elif lib_name == "stdlib":
- for lib in [StdBlockLibrary, AddnlBlockLibrary]:
+ for lib in StdBlckLibs.values():
lib_el.append(deepcopy(lib))
else:
for ctn in self.Controller.ConfNodeTypes:
@@ -1689,7 +1689,7 @@
result = project.getpou(typename)
if result is not None:
return result
- for standardlibrary in [StdBlockLibrary, AddnlBlockLibrary]:
+ for standardlibrary in StdBlckLibs.values():
result = standardlibrary.getpou(typename)
if result is not None:
return result