Пример #1
0
    def __init__ (self, localRouter):
        threading.Thread.__init__(self)
        self.setDaemon( True ) # when main thread exits stop server as well

        self._log = _log    # so BaseHandler uses correct logger,
        self._taskList = Queue()
        BaseHandler.__init__(self, localRouter)
Пример #2
0
 def __init__ (self, localRouter):
     BaseHandler.__init__(self, localRouter)
     self.__running = False
     threading.Thread.__init__(self)
     self.setDaemon( True )
     self._debug = False
     self._reactor = "select"
     pass
Пример #3
0
 def __init__ (self, localRouter ):
     threading.Thread.__init__(self)
     BaseHandler.__init__(self, localRouter)
     global _log
     _log = self._log
     self.setDaemon( True ) # when main thread exits stop server as well
     self.running = False
     self.LOCALHOST = ''
     self.listenPORT = 4573   # default from webbrick.
Пример #4
0
    def __init__ (self, localRouter):
        BaseHandler.__init__(self, localRouter)
        global _log
        _log = self._log
        threading.Thread.__init__(self)
        self.setDaemon( True ) # when main thread exits stop server as well

        self._taskList = Queue()
        self._heatmisers = dict()   # keyed by name
Пример #5
0
 def __init__ (self, localRouter):
     BaseHandler.__init__(self, localRouter)
     self._devicesFound = {}
     self._devicesIncluded = {}
     self._renderers = {}
     self._includeList = None
     self._excludeList = None
     self._controlpoint = None
     threading.Thread.__init__(self)
     self.setDaemon( True )
Пример #6
0
 def __init__ (self, localRouter, wfile = None, rfile = None ):
     # rfile and wfile are allowed mainly for testing purposes.
     self._log = _log    # so BaseHandler uses correct logger,
     threading.Thread.__init__(self)
     BaseHandler.__init__(self, localRouter)
     self.setDaemon( True ) # when main thread exits stop server as well
     self.running = False
     self._inFile = rfile
     self._outFile = wfile
     if rfile:
         _log.debug( "rFile %s " % (rfile.getvalue()) )
     if wfile:
         _log.debug( "wFile %s " % (wfile.getvalue()) )
     self.serialPort = "com1"
     self._taskList = Queue()
     self._csum = 0  # current checksum being calculated
     self.rxHouseCode = None
     self.rxDeviceCodes = None
 def __init__ (self, localRouter ):
     BaseHandler.__init__(self, localRouter)
     _log = self._log
     self._webbrickConfigs = dict()    # keyed by IP address and contains WbConfig objects.
     self._webbrickStati = dict()    # keyed by IP address and contains WbStatus objects.
     self._readFailCount = dict()    # keyed by IP address and contains a count of read errors