|
|
|
@ -35,4 +35,16 @@ class Entry(Editable):
|
|
|
|
|
|
|
|
|
|
def get_measure_text(self):
|
|
|
|
|
return self.measure["text"] if "text" in self.measure else ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def remove_translation(self, translation):
|
|
|
|
|
for sense in self.senses:
|
|
|
|
|
for cluster in sense.translations:
|
|
|
|
|
if translation in cluster:
|
|
|
|
|
cluster.remove(translation)
|
|
|
|
|
return
|
|
|
|
|
for example in sense.examples:
|
|
|
|
|
for cluster in example.translations:
|
|
|
|
|
if translation in cluster:
|
|
|
|
|
cluster.remove(translation)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|