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.
20 lines
496 B
20 lines
496 B
from export import export_to_xml
|
|
from browser import window
|
|
|
|
|
|
def clean_label(label):
|
|
return label.replace("-- ", "")
|
|
|
|
|
|
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)
|