PLCControler.py
changeset 29 3b7e23a323a6
parent 28 fc23e1f415d8
child 33 0dd4a876392f
--- 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