Changeset - b2469273289e
[Not reviewed]
default
0 1 0
David McClosky - 18 years ago 2007-06-15 20:12:54
dmcc@bigasterisk.com
Submaster: set URI from loaded file
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/Submaster.py
Show inline comments
 
@@ -65,8 +65,8 @@ class Submaster:
 
            if graph is None:
 
                graph = Graph()
 
                graph.parse(showconfig.subFile(self.name), format="nt")
 
            subUri = L9['sub/%s' % self.name]
 
            for lev in graph.objects(subUri, L9['lightLevel']):
 
            self.uri = L9['sub/%s' % self.name]
 
            for lev in graph.objects(self.uri, L9['lightLevel']):
 
                chan = graph.value(lev, L9['channel'])
 
                val = graph.value(lev, L9['level'])
 
                name = patchGraph.label(chan)
 
@@ -233,6 +233,7 @@ class Submasters:
 
            else:
 
                notsongs.append(s)
 
        combined = notsongs + songs
 

	
 
        return combined
 
    def get_all_sub_names(self):
 
        return [s.name for s in self.get_all_subs()]
0 comments (0 inline, 0 general)