(domain, instance_xml, attachments=None, auth_context=None)
Create a new xform to ready to be saved to a database in a thread-safe manner

    attachments is a dictionary of the request.FILES that are not the xform;
    key is parameter name, value is
    `django.core.files.uploadedfile.UploadedFile` object.

    :returns: FormProcessingResult containing the new XFormInstanceSQL
    or raises an exception if anything goes wrong.
Create a new xform to ready to be saved to a database in a thread-safe manner
Create a new xform to ready to be saved to a database in a thread - safe manner
def process_xform_xml(domain, instance_xml, attachments=None, auth_context=None):
    """
    Create a new xform to ready to be saved to a database in a thread-safe manner

    attachments is a dictionary of the request.FILES that are not the xform;
    key is parameter name, value is
    `django.core.files.uploadedfile.UploadedFile` object.

    :returns: FormProcessingResult containing the new XFormInstanceSQL
    or raises an exception if anything goes wrong.
    """
    attachments = attachments or {}

    try:
        return _create_new_xform(domain, instance_xml, attachments=attachments, auth_context=auth_context)
    except (MissingXMLNSError, XMLSyntaxError) as e:
        return _get_submission_error(domain, instance_xml, e, auth_context)
def process_xform_xml ( domain , instance_xml , attachments = None , auth_context = None ) : attachments = attachments or { } try : return _create_new_xform ( domain , instance_xml , attachments = attachments , auth_context = auth_context ) except ( MissingXMLNSError , XMLSyntaxError ) as e : return _get_submission_error ( domain , instance_xml , e , auth_context )