You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
565 B
26 lines
565 B
from model.entry import Entry
|
|
|
|
|
|
class Model:
|
|
def __init__(self, names):
|
|
self.entry = None
|
|
self.log = []
|
|
self.names = ["Ozbolt", "Katarina"]
|
|
|
|
|
|
def import_xml(self, xml_text):
|
|
parser = __new__(DOMParser())
|
|
xmlDoc = parser.parseFromString(xml_text, "text/xml")
|
|
self.entry = Entry(xmlDoc.querySelector("entry"))
|
|
|
|
|
|
# type alias Model =
|
|
# { shown: Bool
|
|
# , editable: Bool
|
|
# , entry: Maybe Entry
|
|
# , newXml: Bool
|
|
# , xml: Maybe String
|
|
# , xmlObject: Maybe Xml2.Value
|
|
# , log: List LogEntry
|
|
# }
|