* src/AddSpouse.py: accept Person instead of handle

* src/ChooseParents.py: accept Person instead of handle
* src/GenericFilter.py: use single pass through database, filters
accept Person objects instead of handles
* src/PeopleModel.py: don't precalculate handle list
* src/RelLib.py: allow person object to be initialized with
serialized data
* src/SelectChild.py: accept Person instead of handle

* src/SelectChild.py (LikelyFilter.prepare,LikelyFilter.apply):


svn: r4854
This commit is contained in:
Don Allingham
2005-06-21 04:04:44 +00:00
parent b33fcb04a9
commit 6730d35232
7 changed files with 290 additions and 257 deletions

View File

@@ -820,8 +820,7 @@ class LikelyFilter(GenericFilter.Rule):
dateobj.set_year(year-70)
self.upper = dateobj.sortval
def apply(self,db,handle):
person = db.get_person_from_handle(handle)
def apply(self,db,person):
if person.gender != self.gender:
return False
if not person.birth_handle: