Mercurial > code > home > repos > homeauto
diff service/reasoning/inputgraph.py @ 1117:d5687ba23279
fix input graph web display by dirtying combinedGraph better.
Ignore-this: e40e7499e3d675b029f829a1f269b83a
darcs-hash:c15a1820ca7b5e40b2a27946bfe1c87cc80612fa
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 09 Oct 2016 13:57:50 -0700 |
parents | 8caf62030955 |
children | c51075f267bc |
line wrap: on
line diff
--- a/service/reasoning/inputgraph.py Fri Sep 16 01:28:48 2016 -0700 +++ b/service/reasoning/inputgraph.py Sun Oct 09 13:57:50 2016 -0700 @@ -91,12 +91,16 @@ anywhere; it needs to be processed only once """ self.inputDirs = inputDirs - self.onChange = onChange + self._onChange = onChange self._fileGraph = Graph() - self._remoteData = RemoteData(lambda: self.onChange(self)) + self._remoteData = RemoteData(lambda: self.onChangeLocal()) self._combinedGraph = None self._oneShotAdditionGraph = None + def onChangeLocal(self, oneShot=False, oneShotGraph=None): + self._combinedGraph = None + self._onChange(self, oneShot=oneShot, oneShotGraph=oneShotGraph) + def updateFileData(self): """ make sure we contain the correct data from the files in inputDirs @@ -115,7 +119,7 @@ self._fileGraph.parse(fp.open(), format="n3") self._combinedGraph = None - self.onChange(self) + self.onChangeLocal() def addOneShot(self, g): """