--- 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)