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