Mercurial > code > home > repos > light9
diff bin/keyboardcomposer @ 814:1ae8e6b287e3
improvements to file watching. outline of how resync will work
Ignore-this: 501c4f2076099364645cc27e9fe48f61
author | drewp@bigasterisk.com |
---|---|
date | Sun, 30 Sep 2012 07:11:49 +0000 |
parents | f29788d1c8c9 |
children | d7f1f868eb6c |
line wrap: on
line diff
--- a/bin/keyboardcomposer Sun Sep 30 07:10:51 2012 +0000 +++ b/bin/keyboardcomposer Sun Sep 30 07:11:49 2012 +0000 @@ -119,7 +119,7 @@ ?session :subSetting [a :SubSetting; :sub ?s; :level ?l] """ - + # move to syncedgraph patchMapping with self.sub.graph.currentState() as graph: adds = set([]) for setting in graph.objects(self.session, L9['subSetting']): @@ -127,7 +127,7 @@ break else: setting = URIRef(self.session + "/setting/%s" % - random.randrange(999999)) + random.randrange(999999999)) adds.update([ (self.session, L9['subSetting'], setting, self.session), (setting, RDF.type, L9['SubSetting'], self.session), @@ -143,7 +143,7 @@ def updateLevelFromGraph(self): """read rdf level, write it to subbox.slider_var""" - + # move this to syncedgraph readMapping graph = self.sub.graph for setting in graph.objects(self.session, L9['subSetting']):