#NEWLINE# def get_product_data( self ) : #NEWLINE# #INDENT# start = ( ( int ( self . page ) - 1 ) * int ( self . limit ) ) #NEWLINE# end = ( start + int ( self . limit ) ) #NEWLINE# queryset = SQLProduct . objects . filter ( domain = self . domain , program_id = self . program_id ) #NEWLINE# for product in queryset [ start : end ] : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'name' : product . name , #NEWLINE# 'code' : product . code , #NEWLINE# 'description' : product . description , #NEWLINE# 'unit' : product . units , #NEWLINE# #UNINDENT# } )