Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr comprehension NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body ImportFrom alias If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If Call NameLoad ListComp CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword AttributeLoad Call NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr Expr Call NameLoad ListLoad NameLoad Dict Str NameLoad decorator_list
N/A __future__ absolute_import uuid uuid4 xml.etree ElementTree django.conf settings casexml.apps.case.const DEFAULT_CASE_INDEX_IDENTIFIERS CASE_INDEX_EXTENSION casexml.apps.case.exceptions CommCareCaseError casexml.apps.case.mock CaseBlock IndexAttrs casexml.apps.case.util post_case_blocks casexml.apps.case.xform get_case_updates corehq.apps.case_search.models CLAIM_CASE_TYPE corehq.apps.hqcase.utils submit_case_blocks corehq.form_processor.backends.couch.update_strategy CouchCaseUpdateStrategy corehq.form_processor.interfaces.dbaccessors CaseAccessors corehq.form_processor.interfaces.processor FormProcessorInterface close_cases N/A N/A case_ids domain user N/A N/A N/A 
    Close cases by submitting a close forms.

    Accepts submitting user as a user object or a fake system user string.

    Returns the form id of the closing form.
     N/A N/A hasattr user _id N/A N/A user_id N/A user _id N/A username N/A user username N/A N/A user_id user N/A username user N/A case_blocks N/A N/A N/A ElementTree tostring N/A N/A N/A CaseBlock create False case_id case_id close True as_xml N/A case_id case_ids N/A N/A submit_case_blocks case_blocks domain username user_id N/A close_case N/A N/A case_id domain user N/A N/A N/A N/A close_cases N/A case_id domain user N/A rebuild_case_from_actions N/A N/A case actions N/A N/A N/A strategy N/A CouchCaseUpdateStrategy case N/A N/A N/A strategy reset_case_state N/A N/A case xform_ids N/A N/A N/A case actions actions N/A N/A N/A strategy soft_rebuild_case N/A rebuild_case_from_forms N/A N/A domain case_id detail N/A N/A N/A 
    Given a case ID, rebuild the entire case state based on all existing forms
    referencing it. Useful when things go wrong or when you need to manually
    rebuild a case after archiving / deleting it
    :param domain: The domain the case belongs to
    :param case_id: The ID of the case to be rebuilt
    :param detail: A CaseTransactionDetail object
     N/A N/A N/A N/A FormProcessorInterface domain hard_rebuild_case case_id detail N/A safe_hard_delete N/A N/A case N/A N/A N/A 
    Hard delete a case - by deleting the case itself as well as all forms associated with it
    permanently from the database.

    Will fail hard if the case has any reverse indices or if any of the forms associated with
    the case also touch other cases.

    This is used primarily for cleaning up system cases/actions (e.g. the location delegate case).
     N/A N/A N/A settings UNIT_TESTING N/A corehq.apps.commtrack.const USER_LOCATION_OWNER_MAP_TYPE N/A N/A N/A N/A case is_deleted N/A N/A case type USER_LOCATION_OWNER_MAP_TYPE N/A N/A N/A CommCareCaseError Attempt to hard delete a live case whose type isn't white listed N/A N/A case reverse_indices N/A N/A N/A CommCareCaseError N/A N/A You can't hard delete a case that has other dependencies ({})! format N/A case case_id N/A interface N/A FormProcessorInterface N/A case domain N/A forms N/A N/A interface get_case_forms N/A case case_id N/A form forms N/A N/A case_updates N/A get_case_updates form N/A N/A any N/A N/A N/A c id N/A case case_id N/A c case_updates N/A N/A N/A CommCareCaseError You can't hard delete a case that has shared forms with other cases! N/A N/A N/A interface hard_delete_case_and_forms case forms N/A claim_case N/A N/A domain owner_id host_id host_type host_name N/A None None N/A N/A N/A N/A host_type host_name N/A N/A case N/A N/A N/A CaseAccessors domain get_case host_id N/A host_type N/A case type N/A host_name N/A case name N/A identifier N/A DEFAULT_CASE_INDEX_IDENTIFIERS N/A CASE_INDEX_EXTENSION N/A claim_case_block N/A N/A N/A CaseBlock create True case_id N/A N/A uuid4 hex case_name host_name case_type CLAIM_CASE_TYPE owner_id owner_id index N/A identifier N/A IndexAttrs case_type host_type case_id host_id relationship CASE_INDEX_EXTENSION as_xml N/A N/A post_case_blocks N/A claim_case_block N/A domain domain N/A