Mercurial > code > home > repos > light9
changeset 372:b2469273289e
Submaster: set URI from loaded file
author | David McClosky <dmcc@bigasterisk.com> |
---|---|
date | Fri, 15 Jun 2007 20:12:54 +0000 |
parents | 058f2f508504 |
children | e0fc0e6127f4 |
files | light9/Submaster.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/Submaster.py Fri Jun 15 18:58:05 2007 +0000 +++ b/light9/Submaster.py Fri Jun 15 20:12:54 2007 +0000 @@ -65,8 +65,8 @@ 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 @@ 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()]