plcopen/plcopen.py
changeset 1289 1d221eda1e42
parent 1285 fa77f3b8f182
child 1307 26e8b99bc2c3
--- 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)