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:
parent
56e292d05f
commit
fafacb096f
@ -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>
|
2007-05-20 Don Allingham <don@gramps-project.org>
|
||||||
* configure.in: update Simple/Makefile
|
* configure.in: update Simple/Makefile
|
||||||
* src/Simple/_SimpleAccess.py: Move to Simple package
|
* src/Simple/_SimpleAccess.py: Move to Simple package
|
||||||
|
@ -61,7 +61,7 @@ from Editors import EditPerson, EditFamily
|
|||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
import cPickle as pickle
|
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:
|
if depth > 5 or person == None:
|
||||||
return
|
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)
|
lst[index] = (person,val,None,alive)
|
||||||
|
|
||||||
|
20
src/Simple/Makefile.am
Normal file
20
src/Simple/Makefile.am
Normal 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));
|
Loading…
Reference in New Issue
Block a user