(form)
return reprocess_form(form).form
Attempt to re-process an error form. This was created specifically to address
    the issue of out of order forms and child cases (form creates child case before
    parent case has been created).

    See http://manage.dimagi.com/default.asp?250459
    :param form_id: ID of the error form to process
Attempt to re-process an error form. This was created specifically to address
    the issue of out of order forms and child cases (form creates child case before
    parent case has been created).
Attempt to re - process an error form . This was created specifically to address the issue of out of order forms and child cases ( form creates child case before parent case has been created ) .
def reprocess_xform_error(form):
    """
    Attempt to re-process an error form. This was created specifically to address
    the issue of out of order forms and child cases (form creates child case before
    parent case has been created).

    See http://manage.dimagi.com/default.asp?250459
    :param form_id: ID of the error form to process
    """
    if not form:
        raise ReprocessingError('Form with ID {} not found'.format(form.form_id))

    if not form.is_error:
        raise ReprocessingError('Form was not an error form: {}={}'.format(form.form_id, form.doc_type))

    return reprocess_form(form).form
def reprocess_xform_error ( form ) : if not form : raise ReprocessingError ( 'Form with ID {} not found' . format ( form . form_id ) ) if not form . is_error : raise ReprocessingError ( 'Form was not an error form: {}={}' . format ( form . form_id , form . doc_type ) ) return reprocess_form ( form ) . form