--- a/PLCControler.py Tue Jul 10 09:52:53 2007 +0200
+++ b/PLCControler.py Tue Jul 10 11:59:28 2007 +0200
@@ -798,11 +798,11 @@
blocktypes = []
for category in BlockTypes[:-1]:
for blocktype in category["list"]:
- if blocktype["type"] != "function":
+ if blocktype["type"] == "program":
blocktypes.append(blocktype["name"])
if self.Project:
for pou in self.Project.getPous():
- if pou.pouType.getValue() != "function":
+ if pou.pouType.getValue() == "program":
blocktypes.append(pou.getName())
return blocktypes