def get_data_type_chain(element): if isinstance(element, str): return element name = cleanupName(element.getCleanName()) simplebase = element.getSimpleBase() if simplebase: if len(simplebase) == 1: base_name = "%s" % (simplebase[0], ) else: base_name = simplebase else: element1 = ElementDict.get(name) if element1: base_name = "%s" % element1.getType() else: base_name = "%s" % (element.getType(), ) return base_name
def debug_show_elements(): #print 'ElementDict:', ElementDict print '=' * 60 for name, obj in ElementDict.iteritems(): print 'element:', name, obj.getName(), obj.type print '=' * 60