src/plugins/DetAncestralReport.py: print children when no mother exists

svn: r7143
This commit is contained in:
Brian Matherly 2006-08-07 02:53:28 +00:00
parent 7c742ec66a
commit 693a413471
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2006-08-06 Brian Matherly <brian@gramps-project.org>
* src/plugins/DetAncestralReport.py: print children when no mother exists
2006-08-06 Alex Roitman <shura@gramps-project.org> 2006-08-06 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_PlaceView.py: Add sidebar filter. * src/DataViews/_PlaceView.py: Add sidebar filter.
* src/FilterEditor/_EditRule.py: Support place filters. * src/FilterEditor/_EditRule.py: Support place filters.

View File

@ -177,10 +177,12 @@ class DetAncestorReport(Report):
self.gen_handles[person_handle] = key self.gen_handles[person_handle] = key
dupPerson = self.write_person(key) dupPerson = self.write_person(key)
if dupPerson == 0: # Is this a duplicate ind record if dupPerson == 0: # Is this a duplicate ind record
if person.get_gender() == RelLib.Person.FEMALE and \ if self.listChildren:
self.listChildren:
for family_handle in person.get_family_handle_list(): for family_handle in person.get_family_handle_list():
family = self.database.get_family_from_handle(family_handle) family = self.database.get_family_from_handle(family_handle)
mother_handle = family.get_mother_handle()
if mother_handle == None or \
person.get_gender() == RelLib.Person.FEMALE:
self.write_children(family) self.write_children(family)
if self.includeSources: if self.includeSources: