| @@ -31,16 +31,16 @@ class Simple(resource.Resource): | |||||
| def render_GET(self, request): | def render_GET(self, request): | ||||
| print(request) | print(request) | ||||
| statustext = "" | statustext = "" | ||||
| if request.uri == "/on": | |||||
| if request.uri == b"/on": | |||||
| statustext = "turn all projectors on ..." | statustext = "turn all projectors on ..." | ||||
| turnAllProjectorsOn() | turnAllProjectorsOn() | ||||
| if request.uri == "/off": | |||||
| if request.uri == b"/off": | |||||
| statustext = "turn all projectors off ..." | statustext = "turn all projectors off ..." | ||||
| turnAllProjectorsOff() | turnAllProjectorsOff() | ||||
| else: | else: | ||||
| statustext = "" | statustext = "" | ||||
| html = '<b>%s</b>' % statustext | |||||
| html = '<b> %s </b>' % statustext | |||||
| return html.encode('utf-8') | return html.encode('utf-8') | ||||
| site = server.Site(Simple()) | site = server.Site(Simple()) | ||||