Support controller reloading for templates, appliances and projects. Ref #1743

This commit is contained in:
grossmj committed 2020-04-30 15:30:50 +09:30
1 parent 7b61724213
commit 02c0fa26e1
8 files changed
+44 -12

No files matched your search

+10
View File
@@ -18,6 +18,9 @@
import copy
import uuid
import logging
log = logging.getLogger(__name__)
class Appliance:
@@ -33,6 +36,9 @@ class Appliance:
if "appliance_id" in self._data:
del self._data["appliance_id"]
if self.status != 'broken':
log.debug('Appliance "{name}" [{id}] loaded'.format(name=self.name, id=self._id))
@property
def id(self):
return self._id
@@ -45,6 +51,10 @@ class Appliance:
def symbol(self):
return self._data.get("symbol")
@property
def name(self):
return self._data.get("name")
@symbol.setter
def symbol(self, new_symbol):
self._data["symbol"] = new_symbol