#NEWLINE# def execute_insert( self , query ) : #NEWLINE# #INDENT# table = query . model . _meta . db_table #NEWLINE# url = ( ( self . session . auth . instance_url + API_STUB ) + ( '/sobjects/%s/' % table ) ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } #NEWLINE# post_data = extract_values ( query ) #NEWLINE# log . debug ( ( 'INSERT %s%s' % ( table , post_data ) ) ) #NEWLINE# return handle_api_exceptions ( url , self . session . post , headers = headers , data = json . dumps ( post_data ) , _cursor = self )