#NEWLINE# def submit_xform( url_path , domain , submission_xml_string , extra_meta = None ) : #NEWLINE# #INDENT# '\n    RequestFactory submitter\n    ' #NEWLINE# rf = RequestFactory ( ) #NEWLINE# f = StringIO ( submission_xml_string . encode ( 'utf-8' ) ) #NEWLINE# f . name = 'form.xml' #NEWLINE# req = rf . post ( url_path , data = { #NEWLINE# #INDENT# 'xml_submission_file' : f , #NEWLINE# #UNINDENT# } ) #NEWLINE# if f : #NEWLINE# #INDENT# req . META . update ( extra_meta ) #NEWLINE# #UNINDENT# return rcv_views . post ( req , domain )