#NEWLINE# def load_query( self , response , backend , meta , get = None , fields = None , fields_attributes = None , redis_client = None , **options ) : #NEWLINE# #INDENT# if get : #NEWLINE# #INDENT# tpy = meta . dfields . get ( get ) . to_python #NEWLINE# return [ tpy ( v , backend ) for v in response ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( data , related ) = response #NEWLINE# encoding = redis_client . encoding #NEWLINE# data = self . build ( data , meta , fields , fields_attributes , encoding ) #NEWLINE# related_fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if related : #NEWLINE# #INDENT# for ( fname , rdata , fields ) in related : #NEWLINE# #INDENT# fname = native_str ( fname , encoding ) #NEWLINE# fields = tuple ( ( native_str ( f , encoding ) for f in fields ) ) #NEWLINE# related_fields [ fname ] = self . load_related ( meta , fname , rdata , fields , encoding ) #NEWLINE# #UNINDENT# #UNINDENT# return backend . objects_from_db ( meta , data , related_fields )