def set_level(request, level):
    if not hasattr(request, '_messages'):
        return False
    request._messages.level = level
    return True
Return the state of the device.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/messages/api.py/set_level--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/plex.py/PlexClient.state