示例#1
0
文件: server.py 项目: paultag/lucy
 def authenticate_machine(self, machine, password):
     machine = Machine.load(machine)
     if machine.auth(password):
         NAMESPACE.machine = machine
         machine.ping()
         return True
     return False
示例#2
0
文件: server.py 项目: paultag/lucy
 def authenticate_machine(self, machine, password):
     machine = Machine.load(machine)
     if machine.auth(password):
         NAMESPACE.machine = machine
         machine.ping()
         return True
     return False