Fix Deleted node are still return by the API

Fix #529
This commit is contained in:
Julien Duponchelle committed 2016-05-17 13:11:43 +02:00
1 parent 342bcdb5b6
commit ce0d715895
3 files changed
+27 -2

No files matched your search

+6
View File
@@ -140,6 +140,12 @@ class Project:
return node
return self._nodes[node_id]
@asyncio.coroutine
def delete_node(self, node_id):
node = self.get_node(node_id)
del self._nodes[node.id]
yield from node.delete()
def get_node(self, node_id):
"""
Return the node or raise a 404 if the node is unknown