def before_unlock_actions(self):
     for command in self.before_unlock_commands:
         addr = command["address"]
         prop =  command["property"]
         if len(command["argument"]) == 0:
             arg = [0]
         else:
             try:
                arg = [eval(command["argument"])]
             except :
                arg = [command["argument"]]
         if command["type"] == "set" :
             tine.set(addr, prop, arg)	
         elif command["type"] == "query" :
             tine.query(addr, prop, arg[0])
 def before_unlock_actions(self):
     if self.beforeUnlockCommandsPresent:
         for command in eval(self.beforeUnlockCommands):
             addr = command["address"]
             prop = command["property"]
             if len(command["argument"]) == 0:
                 arg = [0]
             else:
                 try:
                     arg = [eval(command["argument"])]
                 except:
                     arg = [command["argument"]]
             if command["type"] == "set":
                 tine.set(addr, prop, arg)
             elif command["type"] == "query":
                 tine.query(addr, prop, arg[0])
 def before_unlock_actions(self):
     """Executes some commands bedore unlocking the doors"""
     for command in self.before_unlock_commands:
         addr = command["address"]
         prop = command["property"]
         if len(command["argument"]) == 0:
             arg = [0]
         else:
             try:
                 arg = [eval(command["argument"])]
             except:
                 arg = [command["argument"]]
         if command["type"] == "set":
             tine.set(addr, prop, arg)
         elif command["type"] == "query":
             tine.query(addr, prop, arg[0])