(request, bookid, version, message, *message_args)
Send notification.

    Add notification message to channel

    Args:
      reuest: Client Request object
      bookid: Unique Book id
      version: Book version
      message: Notification message key
      message_args: positional arguments for message format
Send notification.
Send notification .
def send_notification(request, bookid, version, message, *message_args):
    """Send notification.

    Add notification message to channel

    Args:
      reuest: Client Request object
      bookid: Unique Book id
      version: Book version
      message: Notification message key
      message_args: positional arguments for message format
    """

    channel_name = '/booktype/book/%s/%s/' % (bookid, version)
    user = request.user

    sputnik.addMessageToChannel(request, channel_name, {
        'command': 'notification',
        'message': message,
        'username': user.username,
        'message_args': message_args
    }, myself=False)
def send_notification ( request , bookid , version , message , * message_args ) : channel_name = '/booktype/book/%s/%s/' % ( bookid , version ) user = request . user sputnik . addMessageToChannel ( request , channel_name , { 'command' : 'notification' , 'message' : message , 'username' : user . username , 'message_args' : message_args } , myself = False )