(domain, xform)
return cases
Get all cases touched by this form which also have other forms associated with them.
    :returns: Dict of Case ID -> Case
Get all cases touched by this form which also have other forms associated with them.
    :returns: Dict of Case ID -> Case
Get all cases touched by this form which also have other forms associated with them . : returns : Dict of Case ID - > Case
def _get_cases_with_other_forms(domain, xform):
    """Get all cases touched by this form which also have other forms associated with them.
    :returns: Dict of Case ID -> Case"""
    cases_created = {u.id for u in get_case_updates(xform) if u.creates_case()}
    cases = {}
    for case in CaseAccessors(domain).iter_cases(list(cases_created)):
        if not case.is_deleted and case.xform_ids != [xform.form_id]:
            # case has other forms that need to be archived before this one
            cases[case.case_id] = case.name
    return cases
def _get_cases_with_other_forms ( domain , xform ) : cases_created = { u . id for u in get_case_updates ( xform ) if u . creates_case ( ) } cases = { } for case in CaseAccessors ( domain ) . iter_cases ( list ( cases_created ) ) : if not case . is_deleted and case . xform_ids != [ xform . form_id ] : # case has other forms that need to be archived before this one cases [ case . case_id ] = case . name return cases