--debug
authorrealraum <realraum@realraum.at>
Sat, 8 May 2010 00:12:57 +0000 (00:12 +0000)
committerrealraum <realraum@realraum.at>
Sat, 8 May 2010 00:12:57 +0000 (00:12 +0000)
switch-power.py

index 6b8b9f5..a9ebc29 100755 (executable)
@@ -15,6 +15,7 @@ import subprocess
 import types
 import ConfigParser
 import datetime
+import random
 import traceback
 
 logger = logging.getLogger()
@@ -196,7 +197,7 @@ def eventPanic():
     switchPower(e[0],e[1]) 
     time.sleep(delay)
   random.shuffle(lst1)
-  for rep in lst1:
+  for id in lst1:
     switchPower(id,False)
   time.sleep(1.2)
   eventPresent()