|
@@ -29,12 +29,12 @@ def turnAllProjectorsOff(): |
|
|
class Simple(resource.Resource): |
|
|
class Simple(resource.Resource): |
|
|
isLeaf = True |
|
|
isLeaf = True |
|
|
def render_GET(self, request): |
|
|
def render_GET(self, request): |
|
|
print(request.prepath) |
|
|
|
|
|
|
|
|
print(request) |
|
|
statustext = "" |
|
|
statustext = "" |
|
|
if request.prepath == "on": |
|
|
|
|
|
|
|
|
if request.uri == "/on": |
|
|
statustext = "turn all projectors on ..." |
|
|
statustext = "turn all projectors on ..." |
|
|
turnAllProjectorsOn() |
|
|
turnAllProjectorsOn() |
|
|
if request.prepath == "off": |
|
|
|
|
|
|
|
|
if request.uri == "/off": |
|
|
statustext = "turn all projectors off ..." |
|
|
statustext = "turn all projectors off ..." |
|
|
turnAllProjectorsOff() |
|
|
turnAllProjectorsOff() |
|
|
else: |
|
|
else: |
|
|