def auth(request):
    if hasattr(request, 'user'):
        user = request.user
    else:
        from django.contrib.auth.models import AnonymousUser
        user = AnonymousUser()
    return {
        'user': user,
        'messages': user.get_and_delete_messages(),
        'perms': PermWrapper(user),
    }
Return the appropriate CAMP-style plan resource.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/core/context_processors.py/auth--crossover with--dataset/ETHPy150Open openstack/solum/solum/api/controllers/camp/v1_1/plans.py/PlansController.get_one