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

@ -1,3 +1,8 @@
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.
2007-05-20 Don Allingham <don@gramps-project.org>
* configure.in: update Simple/Makefile
* src/Simple/_SimpleAccess.py: Move to Simple package

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)

20
src/Simple/Makefile.am Normal file
View File

@ -0,0 +1,20 @@
# This is the src/Report level Makefile for Gramps
pkgdatadir = $(datadir)/@PACKAGE@/Simple
pkgdata_PYTHON = \
_SimpleDoc.py\
_SimpleAccess.py\
__init__.py
pkgpyexecdir = @pkgpyexecdir@/Simple
pkgpythondir = @pkgpythondir@/Simple
# Clean up all the byte-compiled files
MOSTLYCLEANFILES = *pyc *pyo
GRAMPS_PY_MODPATH = "../"
pycheck:
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
pychecker $(pkgdata_PYTHON));