# -*- encoding: utf-8 -*-
from flask import request
from lazyblacksmith.utils.request import is_xhr

import logging

logger = logging.getLogger('lb.ajax')


def is_not_ajax():
    """
    Return True if request is not ajax
    This function is used in @cache annotation
    to not cache direct call (http 403)
    """
    return not is_xhr(request)

[((7, 9, 7, 37), 'logging.getLogger', 'logging.getLogger', ({(7, 27, 7, 36): '"""lb.ajax"""'}, {}), "('lb.ajax')", False, 'import logging\n'), ((16, 15, 16, 30), 'lazyblacksmith.utils.request.is_xhr', 'is_xhr', ({(16, 22, 16, 29): 'request'}, {}), '(request)', False, 'from lazyblacksmith.utils.request import is_xhr\n')]