* src/plugins/Check.py: Import const module.

* src/PedView.py: Add person to the list even if there are no parents.


svn: r3466
This commit is contained in:
Alex Roitman 2004-08-22 01:41:53 +00:00
parent 076fa45195
commit 136d64ab89
3 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,9 @@
parse_adopt_event): Don't include "@" signs into family gramps id. parse_adopt_event): Don't include "@" signs into family gramps id.
* src/PedView.py (find_tree): Correctly retrieve parents. * src/PedView.py (find_tree): Correctly retrieve parents.
* src/plugins/Check.py: Import const module.
* src/PedView.py: Add person to the list even if there are no parents.
2004-08-20 Don Allingham <dallingham@users.sourceforge.net> 2004-08-20 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py: update family display after EditPerson * src/gramps_main.py: update family display after EditPerson
* src/EditPerson.py: fix callback * src/EditPerson.py: fix callback

View File

@ -484,6 +484,7 @@ class PedigreeView:
if depth > 5 or person == None: if depth > 5 or person == None:
return return
lst[index] = (person,val)
parent_families = person.get_parent_family_handle_list() parent_families = person.get_parent_family_handle_list()
if parent_families: if parent_families:
@ -495,7 +496,6 @@ class PedigreeView:
frel = (f != "Birth") frel = (f != "Birth")
family = self.parent.db.get_family_from_handle(family_handle) family = self.parent.db.get_family_from_handle(family_handle)
lst[index] = (person,val)
if family != None: if family != None:
father_handle = family.get_father_handle() father_handle = family.get_father_handle()
if father_handle != None: if father_handle != None:

View File

@ -30,6 +30,7 @@
import os import os
import cStringIO import cStringIO
import shutil import shutil
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -41,13 +42,12 @@ import gtk.glade
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# gtk modules # GRAMPS modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import RelLib import RelLib
import Utils import Utils
import const
from gettext import gettext as _
from QuestionDialog import OkDialog, MissingMediaDialog from QuestionDialog import OkDialog, MissingMediaDialog
#------------------------------------------------------------------------- #-------------------------------------------------------------------------