2006-06-01 Don Allingham <don@gramps-project.org>
* src/Filters/Rules/Person/_HaveAltFamilies.py: bring up to speed with RelLib changes svn: r6847
This commit is contained in:
parent
b7429b53fc
commit
c3e6486db1
@ -1,3 +1,7 @@
|
||||
2006-06-01 Don Allingham <don@gramps-project.org>
|
||||
* src/Filters/Rules/Person/_HaveAltFamilies.py: bring up to speed with
|
||||
RelLib changes
|
||||
|
||||
2006-06-01 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/CmdRef.py: upgrade to new report interface
|
||||
* src/ReportBase/_DrawFormatComboBox.py: missing imports
|
||||
|
@ -46,8 +46,11 @@ class HaveAltFamilies(Rule):
|
||||
category = _('Family filters')
|
||||
|
||||
def apply(self,db,person):
|
||||
for (fam,rel1,rel2) in person.get_parent_family_handle_list():
|
||||
if rel1 == ChildRefType.CHILD_ADOPTED \
|
||||
or rel2 == ChildRefType.CHILD_ADOPTED:
|
||||
for fhandle in person.get_parent_family_handle_list():
|
||||
family = db.get_family_from_handle(fhandle)
|
||||
ref = [ ref for ref in family.get_child_ref_list() \
|
||||
if ref.ref == person.handle]
|
||||
if ref[0].get_father_relation() == ChildRefType.ADOPTED \
|
||||
or ref[0].get_mother_relation() == ChildRefType.ADOPTED:
|
||||
return True
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user