예제 #1
0
 def __init__(self, handler):
     if not IClientApp.implementedBy(handler.__class__):
         raise TypeError(
             'handler must implement devicehive.interfaces.IClientApp interface.'
         )
     self.handler = handler
     self.handler.factory = self
     self.command_callbacks = {}
예제 #2
0
파일: ws.py 프로젝트: FirstCypress/LiV
 def __init__(self, handler):
     if not IClientApp.implementedBy(handler.__class__) :
         raise TypeError('handler must implement devicehive.interfaces.IClientApp interface.')
     self.handler = handler
     self.handler.factory = self
     self.command_callbacks = {}