Modifications so that GenericFilters can be applied to a PeopleModel.

svn: r9665
This commit is contained in:
Brian Matherly
2007-12-31 22:22:12 +00:00
parent cfbcdce095
commit e90e15c4af
4 changed files with 16 additions and 5 deletions

View File

@@ -364,7 +364,7 @@ class FastMaleFilter:
def __init__(self,db):
self.db = db
def match(self, handle):
def match(self, handle,db):
value = self.db.get_raw_person_data(handle)
return value[2] == gen.lib.Person.MALE
@@ -373,7 +373,7 @@ class FastFemaleFilter:
def __init__(self,db):
self.db = db
def match(self, handle):
def match(self, handle,db):
value = self.db.get_raw_person_data(handle)
return value[2] == gen.lib.Person.FEMALE