web: CSP, revert functionality, serve content

This commit is contained in:
Maximilian Hils
2014-12-25 16:10:47 +01:00
parent 7d793ae162
commit 1f454b577f
10 changed files with 143 additions and 147 deletions

View File

@@ -88,6 +88,11 @@ class Flow(stateobject.StateObject):
def get_state(self, short=False):
d = super(Flow, self).get_state(short)
d.update(version=version.IVERSION)
if self._backup and self._backup != d:
if short:
d.update(modified=True)
else:
d.update(backup=self._backup)
return d
def __eq__(self, other):