Pārlūkot izejas kodu

request uri

master
Andreas Demmelbauer pirms 4 gadiem
vecāks
revīzija
e296cafbd6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      ir-remote-timer.py

+ 3
- 3
ir-remote-timer.py Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt