(case_blocks, form_extras=None, domain=None, user_id=None, device_id=None)
return submit_case_blocks(
        [ElementTree.tostring(case_block, encoding='utf-8').decode('utf-8') for case_block in case_blocks],
        domain=domain,
        form_extras=form_extras,
        user_id=user_id,
        device_id=device_id,
    )
Post case blocks.

    Extras is used to add runtime attributes to the form before
    sending it off to the case (current use case is sync-token pairing)

    See `device_id` parameter documentation at
    `corehq.apps.hqcase.utils.submit_case_blocks`.
Post case blocks.
Post case blocks .
def post_case_blocks(case_blocks, form_extras=None, domain=None, user_id=None, device_id=None):
    """
    Post case blocks.

    Extras is used to add runtime attributes to the form before
    sending it off to the case (current use case is sync-token pairing)

    See `device_id` parameter documentation at
    `corehq.apps.hqcase.utils.submit_case_blocks`.
    """
    from corehq.apps.hqcase.utils import submit_case_blocks

    if form_extras is None:
        form_extras = {}

    domain = domain or form_extras.pop('domain', None)
    if getattr(settings, 'UNIT_TESTING', False):
        from casexml.apps.case.tests.util import TEST_DOMAIN_NAME
        domain = domain or TEST_DOMAIN_NAME

    return submit_case_blocks(
        [ElementTree.tostring(case_block, encoding='utf-8').decode('utf-8') for case_block in case_blocks],
        domain=domain,
        form_extras=form_extras,
        user_id=user_id,
        device_id=device_id,
    )
def post_case_blocks ( case_blocks , form_extras = None , domain = None , user_id = None , device_id = None ) : from corehq . apps . hqcase . utils import submit_case_blocks if form_extras is None : form_extras = { } domain = domain or form_extras . pop ( 'domain' , None ) if getattr ( settings , 'UNIT_TESTING' , False ) : from casexml . apps . case . tests . util import TEST_DOMAIN_NAME domain = domain or TEST_DOMAIN_NAME return submit_case_blocks ( [ ElementTree . tostring ( case_block , encoding = 'utf-8' ) . decode ( 'utf-8' ) for case_block in case_blocks ] , domain = domain , form_extras = form_extras , user_id = user_id , device_id = device_id , )