#NEWLINE# def get_list( self , get_params , user = None ) : #NEWLINE# #INDENT# qs = self . get_queryset ( get_params ) #NEWLINE# qs = ( self . filter_by_user ( qs , user ) if ( user and self . user_field_to_restrict_by ) else self ) #NEWLINE# qs = self . paginate ( qs , get_params . get ( 'page' ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'items' : [ self . serialize ( obj ) for obj in qs . iterator ( ) ] , #NEWLINE# #UNINDENT# }