#NEWLINE# def resolve_selection( self , selection_list ) : #NEWLINE# #INDENT# ' Returns a list of (row, col) grid-cell coordinates that\n            correspond to the objects in *selection_list*. For each coordinate,\n            if the row is -1, it indicates that the entire column is selected.\n            Likewise coordinates with a column of -1 indicate an entire row\n            that is selected. For the TableModel, the objects in\n            *selection_list* must be TraitGridSelection objects.\n        ' #NEWLINE# items = self . __filtered_items ( ) #NEWLINE# cells = [ ] #NEWLINE# for selection in selection_list : #NEWLINE# #INDENT# row = ( - 1 ) #NEWLINE# if ( row . obj is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# row = items . index ( selection . obj ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# column = ( - 1 ) #NEWLINE# if ( selection . name != '' ) : #NEWLINE# #INDENT# column = self . _get_column_index_by_trait ( selection . name ) #NEWLINE# if ( column is None ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# cells . append ( ( row , column ) ) #NEWLINE# #UNINDENT# return cells