Update project API

This commit is contained in:
Julien Duponchelle committed 2016-08-15 16:44:09 +02:00
1 parent 431bd789cb
commit 3ca4edef93
9 files changed
+74 -54

No files matched your search

-10
View File
@@ -278,16 +278,6 @@ class BaseManager:
if node.id in self._nodes:
del self._nodes[node.id]
@asyncio.coroutine
def project_moved(self, project):
"""
Called when a project is moved
:param project: project instance
"""
pass
@asyncio.coroutine
def delete_node(self, node_id):
"""
-16
View File
@@ -223,22 +223,6 @@ class Dynamips(BaseManager):
if project.id in self._dynamips_ids:
del self._dynamips_ids[project.id]
@asyncio.coroutine
def project_moved(self, project):
"""
Called when a project is moved.
:param project: Project instance
"""
for node in self._nodes.values():
if node.project.id == project.id:
yield from node.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
for device in self._devices.values():
if device.project.id == project.id:
yield from device.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
@property
def dynamips_path(self):
"""