Changeset - 39752169b803
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 15 years ago 2010-06-20 05:05:27
drewp@bigasterisk.com
don't try to read sub graphs for virtual subterms (chases)
Ignore-this: b4bbcab615f9887345c952bbc41eb171
1 file changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/Submaster.py
Show inline comments
 
@@ -70,9 +70,13 @@ class Submaster:
 
                # use the main one! The sub graphs will eventually
 
                # just be part of the one and only shared graph
 
                graph = Graph()
 
                inFile = showconfig.subFile(self.name)
 
                log.info("reading %s", inFile)
 
                graph.parse(inFile, format="n3")
 
                if not self.name:
 
                    # anon sub, maybe for a chase
 
                    pass
 
                else:
 
                    inFile = showconfig.subFile(self.name)
 
                    log.info("reading %s", inFile)
 
                    graph.parse(inFile, format="n3")
 
            self.uri = L9['sub/%s' % self.name]
 
            for lev in graph.objects(self.uri, L9['lightLevel']):
 
                chan = graph.value(lev, L9['channel'])
0 comments (0 inline, 0 general)