Import with images

This commit is contained in:
Julien Duponchelle
2016-07-21 17:55:15 +02:00
parent 0f85fbd5f2
commit 487e99bea5
4 changed files with 65 additions and 7 deletions

View File

@ -279,7 +279,7 @@ class ProjectHandler:
if not packet:
break
temp.write(packet)
project = yield from import_project(controller, request.match_info["project_id"], temp, gns3vm=bool(int(request.GET.get("gns3vm", "1"))))
project = yield from import_project(controller, request.match_info["project_id"], temp)
except OSError as e:
raise aiohttp.web.HTTPInternalServerError(text="Could not import the project: {}".format(e))
@ -367,5 +367,3 @@ class ProjectHandler:
raise aiohttp.web.HTTPNotFound()
except PermissionError:
raise aiohttp.web.HTTPForbidden()