Flatten the project at export and support import for Linux

The client will send a flag to say if the import should be done
on the VM or not

Ref https://github.com/GNS3/gns3-gui/issues/1151
This commit is contained in:
Julien Duponchelle committed 2016-04-06 12:08:00 +02:00
1 parent 5531a576d1
commit e564c84529
3 files changed
+136 -7

No files matched your search

+1 -1
View File
@@ -405,7 +405,7 @@ class ProjectHandler:
if not packet:
break
temp.write(packet)
project.import_zip(temp)
project.import_zip(temp, gns3vm=bool(request.GET.get("gns3vm", "1")))
except OSError as e:
raise aiohttp.web.HTTPInternalServerError(text="Could not import the project: {}".format(e))