WIP: new way for making empty objects (sense, translation,...)
This commit is contained in:
@@ -6,7 +6,10 @@ TAGS = {
|
||||
}
|
||||
|
||||
|
||||
class Translation:
|
||||
from model.editable import Editable
|
||||
|
||||
|
||||
class Translation(Editable):
|
||||
def __init__(self, translation_xml):
|
||||
translation = translation_xml.querySelector("translation")
|
||||
self.translation = translation.textContent if translation else ""
|
||||
@@ -22,8 +25,4 @@ class Translation:
|
||||
self.tags[t_type] = t_value
|
||||
|
||||
|
||||
class NewTranslation(Translation):
|
||||
def __init__(self):
|
||||
self.translation = ""
|
||||
self.tags = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user