Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad NameLoad Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Return Call NameLoad Call NameLoad Str keyword ListLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad keyword Num decorator_list NameLoad Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad
N/A N/A logging functools wraps django.contrib messages django.http HttpResponseRedirect HttpResponse couchdbkit.exceptions ResourceConflict django.views.decorators.http require_POST django.core.urlresolvers reverse corehq.apps.app_manager.exceptions CaseError corehq.apps.app_manager.dbaccessors get_app corehq.apps.app_manager.models AppEditingError corehq.apps.users.decorators require_permission corehq.apps.users.models Permissions corehq.apps.domain.decorators login_and_domain_required safe_download N/A N/A f N/A N/A N/A 
    Makes a download safe, by trapping any app errors and redirecting
    to a default landing page.
    Assumes that the first 2 arguments to the function after request are
    domain and app_id, or there are keyword arguments with those names
     _safe_download N/A N/A request N/A args kwargs N/A N/A domain N/A N/A N/A len args 0 N/A args N/A 0 N/A kwargs N/A domain N/A app_id N/A N/A N/A len args 1 N/A args N/A 1 N/A kwargs N/A app_id N/A latest N/A N/A N/A N/A N/A request GET get latest true True False N/A target N/A N/A N/A N/A request GET get target None N/A N/A N/A N/A request app N/A get_app domain app_id latest latest target target N/A N/A f request args kwargs N/A N/A N/A N/A AppEditingError CaseError N/A e N/A N/A N/A N/A logging exception e N/A N/A N/A messages error request N/A Problem downloading file: %s e N/A N/A HttpResponseRedirect N/A reverse corehq.apps.app_manager.views.view_app args N/A domain app_id N/A N/A wraps f N/A _safe_download N/A no_conflict_require_POST N/A N/A f N/A N/A N/A 
    Catches resource conflicts on save and returns a 409 error.
    Also includes require_POST decorator
     _no_conflict N/A N/A N/A args kwargs N/A N/A N/A N/A N/A f args kwargs N/A N/A N/A ResourceConflict N/A N/A N/A HttpResponse status 409 N/A require_POST N/A wraps f N/A _no_conflict N/A N/A require_can_edit_apps N/A require_permission N/A Permissions edit_apps N/A require_deploy_apps login_and_domain_required