2020-01-05 08:54:38 +00:00
|
|
|
from export import export_to_xml
|
|
|
|
from browser import window
|
|
|
|
|
|
|
|
|
2019-11-20 18:15:05 +00:00
|
|
|
def clean_label(label):
|
|
|
|
return label.replace("-- ", "")
|
2020-01-05 08:54:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
def check_export(model):
|
|
|
|
exported_string = export_to_xml(model)
|
|
|
|
model.import_xml(exported_string)
|
|
|
|
exported_string_2 = export_to_xml(model)
|
|
|
|
|
|
|
|
if exported_string == exported_string_2:
|
|
|
|
window.console.log("OK")
|
|
|
|
else:
|
|
|
|
window.console.log("NOT OK!")
|
|
|
|
window.console.log(exported_string)
|
|
|
|
window.console.log(exported_string_2)
|