# HG changeset patch # User Laurent Bessard # Date 1378246004 -7200 # Node ID 1d221eda1e42c88fbeff747cbcdf959f0845d10a # Parent 70dc98533ec62214f8d7736caf00dd239007a219 Fixed bug in resource pou instance program type selection diff -r 70dc98533ec6 -r 1d221eda1e42 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)