The server has now 2 notification streams

* A new one for controller related events (compute, appliance templates etc.)
* The existing one for project related events (links, nodes etc.)
This commit is contained in:
grossmj committed 2018-08-16 21:31:57 +07:00
1 parent dac3ba19b7
commit 7f72b90b0e
364 files changed
+12364 -9923

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ class Snapshot:
except (OSError, PermissionError) as e:
raise aiohttp.web.HTTPConflict(text=str(e))
yield from project.open()
self._project.controller.notification.emit("snapshot.restored", self.__json__())
self._project.controller.notification.project_emit("snapshot.restored", self.__json__())
return self._project
def __json__(self):