parameters: (self, request, onmessage=None)
docstring: Construct an instance.
  
          Args:
              request: mod_python request.
              onmessage: a function to be called when a message is received.
                         May be None. If not None, the function is called on
                         another thread. In that case, MessageReceiver.receive
                         and MessageReceiver.receive_nowait are useless
                         because they will never return any messages.
docstring_summary: Construct an instance.
docstring_tokens: Construct an instance .
function: def __init__(self, request, onmessage=None):
          """Construct an instance.
  
          Args:
              request: mod_python request.
              onmessage: a function to be called when a message is received.
                         May be None. If not None, the function is called on
                         another thread. In that case, MessageReceiver.receive
                         and MessageReceiver.receive_nowait are useless
                         because they will never return any messages.
          """
  
          threading.Thread.__init__(self)
          self._request = request
          self._queue = Queue.Queue()
          self._onmessage = onmessage
          self._stop_requested = False
          self.setDaemon(True)
          self.start()
function_tokens: def __init__ ( self , request , onmessage = None ) : threading . Thread . __init__ ( self ) self . _request = request self . _queue = Queue . Queue ( ) self . _onmessage = onmessage self . _stop_requested = False self . setDaemon ( True ) self . start ( )