Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad Str NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str For NameStore NameLoad body If Call NameLoad NameLoad Str body For NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield NameLoad orelse Expr Yield TupleLoad BinOpAdd NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Global identifier Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Return NameLoad TryExcept body ImportFrom alias identifier Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A re importlib import_module functools wraps django.conf settings get_api_endpoints N/A N/A N/A N/A N/A 
    Examines all views and returns those with is_api_endpoint set
    to true (done by the @api_endpoint decorator).

    TODO: this isn't particularly expensive now, but if the number of urls
    grows a lot, it may be worth caching this somewhere.
     N/A urlconf N/A import_module N/A settings ROOT_URLCONF N/A urllist N/A urlconf urlpatterns N/A api_endpoints N/A N/A N/A url callback N/A get_all_urls urllist N/A N/A N/A getattr callback is_api_endpoint False N/A N/A clean_url N/A clean_api_regex url N/A N/A api_endpoints N/A clean_url callback N/A api_endpoints N/A format_api_docstring N/A N/A docstring N/A N/A N/A 
    Cleans up a python method docstring for human consumption.
     N/A N/A N/A isinstance docstring basestring N/A N/A INVALID DOCSTRING N/A whitespace_regex \s+ N/A ret N/A N/A re sub whitespace_regex docstring N/A ret N/A N/A ret strip N/A ret N/A clean_api_regex N/A N/A url N/A N/A N/A 
    Given a django-style url regex pattern, strip it down to a human-readable
    url.

    TODO: If pks ever appear in the url, this will need to account for that.
     N/A url N/A N/A url replace ^ N/A url N/A N/A url replace $ N/A N/A N/A N/A url startswith / N/A N/A url N/A / url N/A url N/A get_all_urls N/A N/A urllist prefix N/A N/A N/A 
    Recursive generator that traverses entire tree of urls, starting with
    urllist, yielding a tuple of (url_pattern, view_function) for each
    one.
     N/A entry urllist N/A N/A N/A hasattr entry url_patterns N/A N/A url N/A get_all_urls N/A entry url_patterns N/A prefix N/A N/A entry regex pattern N/A N/A N/A url N/A N/A N/A N/A N/A prefix N/A N/A entry regex pattern N/A entry callback N/A N/A endpoints N/A api_endpoint N/A N/A fn N/A N/A N/A 
    Decorator function to mark a view as allowed to authenticate via API key.

    Decorator must be used before login_required or has_perm to set
    request.user for those decorators.
     N/A N/A fn is_api_endpoint True N/A endpoints N/A N/A N/A endpoints append fn _wrapped N/A N/A request N/A args kwargs N/A N/A user N/A get_api_request_user request N/A user N/A N/A N/A request is_api_request True N/A N/A request user user N/A N/A fn request args kwargs N/A N/A wraps fn N/A _wrapped N/A get_api_request_user N/A N/A request N/A N/A N/A 
    Determines if this is an API request and returns the corresponding user
    if so.
     N/A N/A N/A request is_ajax N/A N/A False N/A auth_header N/A N/A N/A request META get HTTP_AUTHORIZATION N/A N/A auth_header N/A N/A False N/A N/A landing.models SEEDUser User N/A N/A username api_key N/A N/A auth_header split : N/A N/A N/A N/A User objects get api_key api_key username username N/A N/A N/A N/A ValueError N/A User DoesNotExist N/A N/A False N/A APIBypassCSRFMiddleware N/A object N/A N/A 
    This middleware turns off CSRF protection for API clients.

    It must come before CsrfViewMiddleware in settings.MIDDLEWARE_CLASSES.
     process_view N/A N/A self request N/A args kwargs N/A N/A 
        If this request is an API request, bypass CSRF protection.
         N/A N/A get_api_request_user request N/A N/A N/A request csrf_processing_done True N/A None N/A N/A