@auth.s3_requires_membership(2)
def submission_old():
 response.headers['Content-Type'] = 'text/xml'
 xml = str(request.post_vars.xml_submission_file.value)
 if (len(xml) == 0):
  raise HTTP(400, 'Need some xml!')
 importxml(db, xml)
 r = HTTP(201, 'Saved.')
 r.headers['Location'] = request.env.http_host
 raise r

@ auth . s3_requires_membership ( 2 ) def submission_old ( ) : response . headers [ 'Content-Type' ] = 'text/xml' xml = str ( request . post_vars . xml_submission_file . value ) if ( len ( xml ) == 0 ) : raise HTTP ( 400 , 'Need some xml!' ) importxml ( db , xml ) r = HTTP ( 201 , 'Saved.' ) r . headers [ 'Location' ] = request . env . http_host raise r
allows for submission of xforms by odk collect URL @todo: deprecate .