예제 #1
0
	def __init__(self, name):
		g = Genealogy()
		
		data = WALS.get_feature(name)
		self.name = name
		self.description = WALS.FEATURE_MAP[name]
		self.feature_values = WALS.FEATURE_VALUES[name]
		self.data = {}
		
		for lang_code, value in data.items():
			language = g.find_language_by_code(lang_code)
			language.features[name] = self.feature_values[value]
			
			self.data[lang_code] = language
예제 #2
0
 def reload(self):
     data = WALS.get_genealogy(Genealogy.GEN_HTML, True)
     self._load_from_data(data)
예제 #3
0
 def reload(self):
     data = WALS.get_genealogy(Genealogy.GEN_HTML, True)
     self._load_from_data(data)