def get_customer(request):
    """Returns the customer for the given request (which means for the current
    logged in user/or the session user).
    """
    try:
        return request.customer
    except __HOLE__:
        customer = request.customer = _get_customer(request)
        return customer
dataset/ETHPy150Open diefenbach/django-lfs/lfs/customer/utils.py/get_customer