Commit 9bf60aaf authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixup! BT: read metadata (bt/* files) through BusinessTemplateArchive

Use _download_local instead of _importBT because this method was removed
parent da391820
......@@ -397,7 +397,7 @@ class TemplateTool (BaseTool):
os.close(tempid) # Close the opened fd as soon as possible
with open(temppath, 'wb') as tempfile:
tempfile.write(import_file.read())
bt = self._importBT(temppath, id)
bt = self._download_local(temppath, id)
finally:
os.remove(temppath)
bt.build(no_action=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment