beremiz

1d221eda1e42
Parents 70dc98533ec6
Children 26e8b99bc2c3
Fixed bug in resource pou instance program type selection
--- a/plcopen/plcopen.py Wed Aug 28 11:43:51 2013 +0200
+++ b/plcopen/plcopen.py Wed Sep 04 00:06:44 2013 +0200
@@ -671,7 +671,7 @@
# Return Block types checking for recursion
def GetCustomBlockResource(self):
- return [customblocktype for customblocktype in self.CustomBlockTypes.itervalues()
+ return [customblocktype["name"] for customblocktype in self.CustomBlockTypes.itervalues()
if customblocktype["type"] == "program"]
setattr(cls, "GetCustomBlockResource", GetCustomBlockResource)