2006-08-05 Alex Roitman <shura@gramps-project.org>

* src/Filters/Rules/Family/_MotherHasNameOf.py (apply): Handle
	missing parents.
	* src/Filters/Rules/Family/_MotherHasIdOf.py (apply): Handle
	missing parents.
	* src/Filters/Rules/Family/_FatherHasNameOf.py (apply): Handle
	missing parents.
	* src/Filters/Rules/Family/_FatherHasIdOf.py (apply): Handle
	missing parents.



svn: r7134
This commit is contained in:
Alex Roitman 2006-08-05 20:09:47 +00:00
parent 117ba42c32
commit f294e89110
5 changed files with 26 additions and 4 deletions

View File

@ -1,3 +1,13 @@
2006-08-05 Alex Roitman <shura@gramps-project.org>
* src/Filters/Rules/Family/_MotherHasNameOf.py (apply): Handle
missing parents.
* src/Filters/Rules/Family/_MotherHasIdOf.py (apply): Handle
missing parents.
* src/Filters/Rules/Family/_FatherHasNameOf.py (apply): Handle
missing parents.
* src/Filters/Rules/Family/_FatherHasIdOf.py (apply): Handle
missing parents.
2006-08-04 Alex Roitman <shura@gramps-project.org>
* src/Filters/SideBar: Add new module.
* src/Filters/Rules/Event/Makefile.am (pkgdata_PYTHON): Ship new files.

View File

@ -51,4 +51,7 @@ class FatherHasIdOf(HasGrampsId):
def apply(self,db,family):
father_handle = family.get_father_handle()
father = db.get_person_from_handle(father_handle)
if father:
return HasGrampsId.apply(self,db,father)
else:
return False

View File

@ -50,4 +50,7 @@ class FatherHasNameOf(HasNameOf):
def apply(self,db,family):
father_handle = family.get_father_handle()
father = db.get_person_from_handle(father_handle)
if father:
return HasNameOf.apply(self,db,father)
else:
return False

View File

@ -51,4 +51,7 @@ class MotherHasIdOf(HasGrampsId):
def apply(self,db,family):
mother_handle = family.get_mother_handle()
mother = db.get_person_from_handle(mother_handle)
if mother:
return HasGrampsId.apply(self,db,mother)
else:
return False

View File

@ -50,4 +50,7 @@ class MotherHasNameOf(HasNameOf):
def apply(self,db,family):
mother_handle = family.get_mother_handle()
mother = db.get_person_from_handle(mother_handle)
if mother:
return HasNameOf.apply(self,db,mother)
else:
return False