#NEWLINE# def callback( self , response , meta = None , backend = None , odm_command = None , **opts ) : #NEWLINE# #INDENT# if ( odm_command == 'delete' ) : #NEWLINE# #INDENT# res = ( instance_session_result ( r , False , r , True , 0 ) for r in response ) #NEWLINE# return session_result ( meta , res ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( odm_command == 'commit' ) : #NEWLINE# #INDENT# res = self . _wrap_commit ( response , ** opts ) #NEWLINE# return session_result ( meta , res ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( odm_command == 'load' ) : #NEWLINE# #INDENT# return self . load_query ( response , backend , meta , ** opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( odm_command == 'structure' ) : #NEWLINE# #INDENT# return self . flush_structure ( response , backend , meta , ** opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return response