Disable definition of location for directly declared array variables
authorlaurent
Sun, 09 Oct 2011 20:04:35 +0200
changeset 567 eb523c4fa2da
parent 566 6014ef82a98a
child 568 31976c61c701
Disable definition of location for directly declared array variables
PLCControler.py
--- a/PLCControler.py	Sun Oct 09 19:51:14 2011 +0200
+++ b/PLCControler.py	Sun Oct 09 20:04:35 2011 +0200
@@ -23,7 +23,7 @@
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 from xml.dom import minidom
-from types import StringType, UnicodeType
+from types import StringType, UnicodeType, TupleType
 import cPickle
 import os,sys,re
 import datetime
@@ -1365,6 +1365,8 @@
         return True
 
     def IsLocatableType(self, type, debug = False):
+        if isinstance(type, TupleType):
+            return False 
         project = self.GetProject(debug)
         if project is not None:
             datatype = project.getdataType(type)