Support filename for project in the controller

This commit is contained in:
Julien Duponchelle committed 2016-06-16 16:57:54 +02:00
1 parent 411ca56b94
commit c66ef9d218
4 files changed
+17 -14

No files matched your search

+2 -1
View File
@@ -217,9 +217,10 @@ class Controller:
topo_data.pop("revision")
topo_data.pop("type")
project = yield from self.add_project(path=os.path.dirname(path), status="closed", **topo_data)
project = yield from self.add_project(path=os.path.dirname(path), status="closed", filename=os.path.basename(path), **topo_data)
if load:
yield from project.open()
return project
@property
def projects(self):