async_messages/__init__.py
def message_user(user, message, level=constants.INFO):
    """
    Send a message to a particular user.

    :param user: User instance
    :param message: Message to show
    :param level: Message level
    """
    # We store a list of messages in the cache so we can have multiple messages
    # queued up for a user.
    user_key = _user_key(user)
    messages = cache.get(user_key) or []
    messages.append((message, level))
    cache.set(user_key, messages)
def message_user(user, message, level=constants.INFO):
    # We store a list of messages in the cache so we can have multiple messages
    # queued up for a user.
    user_key = _user_key(user)
    messages = cache.get(user_key) or []
    messages.append((message, level))
    cache.set(user_key, messages)
def message_user ( user , message , level = constants . INFO ) : # We store a list of messages in the cache so we can have multiple messages # queued up for a user. user_key = _user_key ( user ) messages = cache . get ( user_key ) or [ ] messages . append ( ( message , level ) ) cache . set ( user_key , messages )
Send a message to a particular user.

    :param user: User instance
    :param message: Message to show
    :param level: Message level
Send a message to a particular user .