* src/DisplayModels/_BaseModel.py: add self.db to match function

2008-01-09  Gary Burton <gary.burton@zen.co.uk>


svn: r9769
This commit is contained in:
Gary Burton 2008-01-09 21:06:28 +00:00
parent 1d8b604c7c
commit de7c632edb
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2008-01-09 Gary Burton <gary.burton@zen.co.uk>
* src/DisplayModels/_BaseModel.py: add self.db to match function
2008-01-09 Gary Burton <gary.burton@zen.co.uk> 2008-01-09 Gary Burton <gary.burton@zen.co.uk>
* src/DataViews/__init__.py: remove message regarding malformed dataviews * src/DataViews/__init__.py: remove message regarding malformed dataviews

View File

@ -260,7 +260,8 @@ class BaseModel(gtk.GenericTreeModel):
self.node_map.clear_map() self.node_map.clear_map()
def add_row_by_handle(self,handle): def add_row_by_handle(self,handle):
if not self.search or (self.search and self.search.match(handle)): if not self.search or \
(self.search and self.search.match(handle, self.db)):
data = self.map(handle) data = self.map(handle)
key = locale.strxfrm(self.sort_func(data)) key = locale.strxfrm(self.sort_func(data))