Moved a few other views and some bugfixes from this refactoring

This commit is contained in:
2020-02-17 00:00:03 +01:00
parent b6cb2dbce5
commit 46fd628f11
7 changed files with 69 additions and 56 deletions

View File

@@ -3,7 +3,10 @@ from model.data import Data
class ComponentLexeme(Data):
def __init__(self, xml):
self.other_attributes = {}
self.text = ""
self.role = ""
def import_xml(self, xml):
if xml.nodeName == "#text":
self.text = xml.data
self.role = None