parameters: (request, channel_name, message, myself=False)
docstring: Add message to specific channel.
  
      :Args:
        - request (:class:`django.http.HttpRequest`): Django Request
        - channel_name (`string`): Channel name
        - message (:class:`dict`): Sputnik message
        - myself (:class:`bool`): Should client also recieve that message.
docstring_summary: Add message to specific channel.
docstring_tokens: Add message to specific channel .
function: def add_message_to_channel(request, channel_name, message, myself=False):
      """
      Add message to specific channel.
  
      :Args:
        - request (:class:`django.http.HttpRequest`): Django Request
        - channel_name (`string`): Channel name
        - message (:class:`dict`): Sputnik message
        - myself (:class:`bool`): Should client also recieve that message.
      """
  
      import sputnik
      from booki.utils.log import print_stack
  
      try:
          clnts = sputnik.smembers("sputnik:channel:%s:channel" % channel_name)
      except:
          print_stack(None)
          return
  
      message["channel"] = channel_name
      message["clientID"] = request.clientID
  
      for c in clnts:
          if not myself and c == request.sputnikID:
              continue
  
          if c.strip() != '':
              try:
                  sputnik.push("ses:%s:messages" % c, serializeJson(message))
              except:
                  print_stack(None)
function_tokens: def add_message_to_channel ( request , channel_name , message , myself = False ) : import sputnik from booki . utils . log import print_stack try : clnts = sputnik . smembers ( "sputnik:channel:%s:channel" % channel_name ) except : print_stack ( None ) return message [ "channel" ] = channel_name message [ "clientID" ] = request . clientID for c in clnts : if not myself and c == request . sputnikID : continue if c . strip ( ) != '' : try : sputnik . push ( "ses:%s:messages" % c , serializeJson ( message ) ) except : print_stack ( None )