Changeset - 84c0a3bf07ed
[Not reviewed]
default
0 1 0
Drew Perttula - 14 years ago 2011-06-18 05:12:23
drewp@bigasterisk.com
webcontrol remove hardcoded show
Ignore-this: 4d42e9c0e07649b2e076b2d1fcb1eacc
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/webcontrol
Show inline comments
 
@@ -67,13 +67,12 @@ class Main(rend.Page):
 
        pic = T.img(src="icon/enabled.png")
 
        if ctx.arg('error'):
 
            pic = T.img(src="icon/warning.png")
 
        return [pic, ctx.arg('status') or 'ready']
 

	
 
    def render_songButtons(self, ctx, data):
 
        show = URIRef("http://light9.bigasterisk.com/show/dance2009") # ?
 
        playList = graph.value(show, L9['playList'])
 
        songs = list(graph.items(playList))
 
        out = []
 
        for song in songs:
 
            out.append(
 
                T.form(method="post", action="playSong")[
 
@@ -105,11 +104,12 @@ class Main(rend.Page):
 
        returnValue(rend.Page.locateChild(self, ctx, segments))
 

	
 
    def child_icon(self, ctx):
 
        return static.File("/usr/share/pyshared/elisa/plugins/poblesec/tango")
 
            
 
graph = showconfig.getGraph()
 
show = showconfig.showUri()
 

	
 
log.startLogging(sys.stdout)
 

	
 
reactor.listenTCP(9000, NevowSite(Main(graph)))
 
reactor.run()
0 comments (0 inline, 0 general)