(url_path, domain, submission_xml_string, extra_meta=None)
return post(req, domain)
RequestFactory submitter
RequestFactory submitter
RequestFactory submitter
def submit_xform(url_path, domain, submission_xml_string, extra_meta=None):
    """
    RequestFactory submitter
    """
    rf = RequestFactory()
    f = BytesIO(submission_xml_string.encode('utf-8'))
    f.name = 'form.xml'

    req = rf.post(url_path, data={'xml_submission_file': f}) #, content_type='multipart/form-data')
    if extra_meta:
        req.META.update(extra_meta)
    return post(req, domain)
def submit_xform ( url_path , domain , submission_xml_string , extra_meta = None ) : rf = RequestFactory ( ) f = BytesIO ( submission_xml_string . encode ( 'utf-8' ) ) f . name = 'form.xml' req = rf . post ( url_path , data = { 'xml_submission_file' : f } ) #, content_type='multipart/form-data') if extra_meta : req . META . update ( extra_meta ) return post ( req , domain )