0001521: Filters work when tested, but not in side bar
svn: r9737
This commit is contained in:
parent
2fbee469a7
commit
1d62180e49
@ -1,3 +1,7 @@
|
||||
2008-01-06 Brian Matherly <brian@gramps-project.org>
|
||||
* src/Filters/_SearchFilter.py:
|
||||
0001521: Filters work when tested, but not in side bar
|
||||
|
||||
2008-01-06 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||
* src/plugins/DefaultGramplets.py: added gettext (thanks, Jim!)
|
||||
|
||||
|
@ -30,13 +30,13 @@ class SearchFilter:
|
||||
self.text = text.upper()
|
||||
self.invert = invert
|
||||
|
||||
def match(self, handle):
|
||||
def match(self, handle, db):
|
||||
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
|
||||
|
||||
class ExactSearchFilter(SearchFilter):
|
||||
def __init__(self, func, text, invert):
|
||||
SearchFilter.__init__(self, func, text, invert)
|
||||
|
||||
def match(self, handle):
|
||||
def match(self, handle, db):
|
||||
return self.invert ^ (self.func(handle).upper() == self.text.strip())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user