2007-05-24 Don Allingham <don@gramps-project.org>

* src/Simple/Makefile.am: added
	* src/DataViews/_PedigreeView.py: catch loop in relationships, 
	indicated by a recursion limit exception.



svn: r8517
This commit is contained in:
Don Allingham
2007-05-25 03:50:01 +00:00
parent 56e292d05f
commit fafacb096f
3 changed files with 32 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ from Editors import EditPerson, EditFamily
from DdTargets import DdTargets
import cPickle as pickle
from QuestionDialog import RunDatabaseRepair
from QuestionDialog import RunDatabaseRepair, ErrorDialog
#-------------------------------------------------------------------------
#
@@ -1246,7 +1246,12 @@ class PedigreeView(PageView.PersonNavView):
if depth > 5 or person == None:
return
alive = Utils.probably_alive(person, self.dbstate.db)
try:
alive = Utils.probably_alive(person, self.dbstate.db)
except RuntimeError:
ErrorDialog(_('Relationship loop detected'),
_('A person was found to be his/her own ancestor.'))
alive = False
lst[index] = (person,val,None,alive)