Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore ListLoad NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore ListLoad NameLoad Return SetComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str keyword NameLoad keyword BinOpAdd NameLoad ListLoad Dict keyword NameLoad attr decorator_list Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body If CompareIn SubscriptLoad NameLoad Index Str ListLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index Str If SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list decorator_list
N/A collections namedtuple N/A logging optparse make_option django.core.management BaseCommand corehq.apps.app_manager.models Application corehq.util.couch iter_update DocUpdate N/A logger N/A N/A logging getLogger app_migration N/A N/A N/A logger setLevel DEBUG get_all_app_ids N/A N/A include_builds N/A False N/A N/A key N/A None N/A N/A include_builds N/A N/A key N/A None N/A N/A N/A r N/A id N/A r N/A N/A N/A N/A N/A N/A Application get_db view app_manager/applications startkey key endkey N/A key N/A N/A reduce False all N/A N/A SaveError N/A namedtuple SaveError id error reason AppMigrationCommandBase N/A BaseCommand N/A N/A 
    Base class for commands that want to migrate apps.
     N/A include_builds False N/A option_list N/A N/A BaseCommand option_list N/A N/A make_option --failfast action store_true dest failfast default False help Stop processing if there is an error handle N/A N/A self N/A args options N/A N/A N/A self options options N/A app_ids N/A N/A self get_app_ids N/A N/A N/A logger info N/A N/A migrating {} apps format N/A len app_ids N/A results N/A iter_update N/A N/A Application get_db N/A self _migrate_app app_ids verbose True N/A N/A N/A self results_callback results N/A N/A N/A logger info done N/A _migrate_app N/A N/A self app_doc N/A N/A N/A N/A N/A N/A N/A app_doc N/A doc_type N/A Application Application-Deleted N/A N/A migrated_app N/A N/A self migrate_app app_doc N/A migrated_app N/A N/A N/A DocUpdate migrated_app N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger exception N/A N/A App {id} not properly migrated format id N/A app_doc N/A _id N/A N/A N/A self options N/A failfast N/A N/A e N/A get_app_ids N/A N/A self N/A N/A N/A N/A get_all_app_ids N/A self include_builds N/A migrate_app N/A N/A self app N/A N/A N/A N/A NotImplementedError N/A results_callback N/A N/A self results N/A N/A N/A 
        Override this to do custom result handling.
        :param results:  an object with the following properties:
                        'ignored_ids', 'not_found_ids', 'deleted_ids', 'updated_ids', 'error_ids'
         N/A N/A N/A