Changeset 1380:63f53816cb20 in orange-bioinformatics


Ignore:
Timestamp:
04/28/11 14:27:15 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
f10fbd650dea1dcc164317e42f3205bb69757af2
Message:

Some changes to search hints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGEODatasets.py

    r1374 r1380  
    306306        self.connect(self.treeWidget.selectionModel(), SIGNAL("selectionChanged(QItemSelection , QItemSelection )"), self.updateSelection) 
    307307        filterItems = " ".join([self.gds[i][key] for i in range(len(self.gds)) for key in self.searchKeys]) 
    308         filterItems = reduce(lambda s, d: s.replace(d, " "), [",", ".", ":", "!", "?", "(", ")"], filterItems.lower()) 
     308        filterItems = reduce(lambda s, d: s.replace(d, " "), [",", ".", ":", ";", "!", "?", "(", ")", "{", "}" 
     309                                                              "[", "]", "_", "-", "+", "\\", "|", "/"], 
     310                                                              filterItems.lower()) 
    309311        filterItems = sorted(set(filterItems.split(" "))) 
     312        filterItems = [item for item in filterItems if len(filterItems) > 3] 
    310313        self.filterLineEdit.setItems(filterItems) 
    311314         
Note: See TracChangeset for help on using the changeset viewer.