Let the server know about the project name and convert old IOU projects on remote servers.

This commit is contained in:
grossmj committed 2015-03-08 19:13:01 -06:00
1 parent 2934232afb
commit 95766fa30d
5 files changed
+51 -17

No files matched your search

@@ -37,6 +37,7 @@ class ProjectHandler:
pm = ProjectManager.instance()
p = pm.create_project(
name=request.json.get("name"),
path=request.json.get("path"),
project_id=request.json.get("project_id"),
temporary=request.json.get("temporary", False)
@@ -81,6 +82,7 @@ class ProjectHandler:
pm = ProjectManager.instance()
project = pm.get_project(request.match_info["project_id"])
project.temporary = request.json.get("temporary", project.temporary)
project.name = request.json.get("name", project.name)
project_path = request.json.get("path", project.path)
if project_path != project.path:
project.path = project_path