Fixed bug in resource pou instance program type selection
authorLaurent Bessard
Wed, 04 Sep 2013 00:06:44 +0200
changeset 1289 1d221eda1e42
parent 1287 70dc98533ec6
child 1307 26e8b99bc2c3
Fixed bug in resource pou instance program type selection
plcopen/plcopen.py
--- 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)