#NEWLINE# def getViews( self , list_mode ) : #NEWLINE# #INDENT# views = [ ] #NEWLINE# if ( list_mode == 'active_group' ) : #NEWLINE# #INDENT# views = self . window . views_in_group ( self . window . active_group ( ) ) #NEWLINE# #UNINDENT# if ( ( list_mode == 'window' ) or ( len ( views ) < 1 ) ) : #NEWLINE# #INDENT# views = self . window . views ( ) #NEWLINE# #UNINDENT# return views