#NEWLINE# @ cached_property #NEWLINE# def get_rows( self ) : #NEWLINE# #INDENT# 'returns rows with items\n        [[item1 item2], [item3 item4], [item5]]' #NEWLINE# rows = [ ] #NEWLINE# row = [ ] #NEWLINE# for ( i , item ) in enumerate ( self . items ) : #NEWLINE# #INDENT# if ( ( i > 0 ) and ( ( i % self . objects_per_row ) == 0 ) ) : #NEWLINE# #INDENT# rows . append ( row ) #NEWLINE# row = [ ] #NEWLINE# #UNINDENT# row . append ( item ) #NEWLINE# #UNINDENT# rows . append ( row ) #NEWLINE# return rows