equal
deleted
inserted
replaced
21 #You should have received a copy of the GNU General Public |
21 #You should have received a copy of the GNU General Public |
22 #License along with this library; if not, write to the Free Software |
22 #License along with this library; if not, write to the Free Software |
23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
24 |
25 from xml.dom import minidom |
25 from xml.dom import minidom |
26 from types import StringType, UnicodeType |
26 from types import StringType, UnicodeType, TupleType |
27 import cPickle |
27 import cPickle |
28 import os,sys,re |
28 import os,sys,re |
29 import datetime |
29 import datetime |
30 from time import localtime |
30 from time import localtime |
31 |
31 |
1363 if type is not None: |
1363 if type is not None: |
1364 return not type.startswith("ANY") |
1364 return not type.startswith("ANY") |
1365 return True |
1365 return True |
1366 |
1366 |
1367 def IsLocatableType(self, type, debug = False): |
1367 def IsLocatableType(self, type, debug = False): |
|
1368 if isinstance(type, TupleType): |
|
1369 return False |
1368 project = self.GetProject(debug) |
1370 project = self.GetProject(debug) |
1369 if project is not None: |
1371 if project is not None: |
1370 datatype = project.getdataType(type) |
1372 datatype = project.getdataType(type) |
1371 if datatype is not None: |
1373 if datatype is not None: |
1372 return project.IsLocatableType(datatype) |
1374 return project.IsLocatableType(datatype) |