Skip to content
Browse files

Test

  • Loading branch information...
1 parent f875cc2 commit 279d9f586095bb9716b9ddc91d7572d59f8319d2 @edsonaj committed Feb 8, 2012
Showing with 1 addition and 16 deletions.
  1. +1 −16 plugins/cinema.py
View
17 plugins/cinema.py
@@ -39,19 +39,4 @@ def st_assistir_filme(self, speech, language):
self.say("A sala esta pronta. Tenha um bom filme.","The room is ready. Have a great film.")
self.complete_request()
- @register("pt-BR", "(.*filme.*acabou.*)")
- def st_acabou_filme(self, speech, language):
- resp = self.ask("Deseja abrir a persiana também?")
- if resp == "Sim":
- self.say("Ligando a iluminacao de chao e abrindo as persianas.","turning on the ground lights and opening the blind")
- os.system("java -jar '/home/ubuntu/SiriProxy/KNX/_Cinema__Open_Window.jar'")
- os.system("java -jar '/home/ubuntu/SiriProxy/KNX/_Cinema__Turn_Light_OFF.jar'")
- os.system("java -jar '/home/ubuntu/SiriProxy/KNX/_Cinema__Dimmer_100.jar'")
- else if resp == "Não":
- self.say("Ligando a iluminacao de chao.","turning on the ground lights")
- os.system("java -jar '/home/ubuntu/SiriProxy/KNX/_Cinema__Turn_Light_OFF.jar'")
- os.system("java -jar '/home/ubuntu/SiriProxy/KNX/_Cinema__Dimmer_100.jar'")
- else:
- self.say("Desculpe, nao entendi.","Sorry, I didn't get that.")
- self.say("Espero que tenha sido um bom filme.","I hope it was a great movie.")
- self.complete_request()
+

0 comments on commit 279d9f5

Please sign in to comment.
Something went wrong with that request. Please try again.