diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index f8125609f..41cbca514 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -911,9 +911,12 @@ class FamilyView: list = person.get_parent_family_id_list() for (f,mrel,frel) in list: + print (f,mrel,frel) fam = self.parent.db.find_family_from_id(f) father_id = fam.get_father_id() mother_id = fam.get_mother_id() + print "father_id:", father_id + print "mother_id:", mother_id f = self.parent.db.find_person_from_id(father_id) m = self.parent.db.find_person_from_id(mother_id) father = self.nameof(_("Father"),f,frel) diff --git a/gramps2/src/GrampsParser.py b/gramps2/src/GrampsParser.py index 5e3ecd6af..0769a5d1b 100644 --- a/gramps2/src/GrampsParser.py +++ b/gramps2/src/GrampsParser.py @@ -920,21 +920,21 @@ class GrampsImportParser(GrampsParser): def __init__(self,database,callback,base): GrampsParser.__init__(self,database,callback,base) - self.func_map["bookmark"] = (self.start_bmark, None) - self.func_map["child"] = (self.start_child,None) - self.func_map["family"] = (self.start_family, None) - self.func_map["father"] = (self.start_father, None) - self.func_map["mother"] = (self.start_mother,None) - self.func_map["people"] = (self.start_people, None) - self.func_map["person"] = (self.start_person, self.stop_person) - self.func_map["objref"] = (self.start_objref, self.stop_objref) - self.func_map["object"] = (self.start_object, self.stop_object) - self.func_map["place"] = (self.start_place, self.stop_place) - self.func_map["placeobj"] = (self.start_placeobj,self.stop_placeobj) - self.func_map["source"] = (self.start_source, self.stop_source) - self.func_map["sourceref"]= (self.start_sourceref, self.stop_sourceref) - self.func_map["childof"] = (self.start_childof,None) - self.func_map["parentin"] = (self.start_parentin,None) +# self.func_map["bookmark"] = (self.start_bmark, None) +# self.func_map["child"] = (self.start_child,None) +# self.func_map["family"] = (self.start_family, None) +# self.func_map["father"] = (self.start_father, None) +# self.func_map["mother"] = (self.start_mother,None) +# self.func_map["people"] = (self.start_people, None) +# self.func_map["person"] = (self.start_person, self.stop_person) +# self.func_map["objref"] = (self.start_objref, self.stop_objref) +# self.func_map["object"] = (self.start_object, self.stop_object) +# self.func_map["place"] = (self.start_place, self.stop_place) +# self.func_map["placeobj"] = (self.start_placeobj,self.stop_placeobj) +# self.func_map["source"] = (self.start_source, self.stop_source) +# self.func_map["sourceref"]= (self.start_sourceref, self.stop_sourceref) +# self.func_map["childof"] = (self.start_childof,None) +# self.func_map["parentin"] = (self.start_parentin,None) def start_childof(self,attrs): family = self.db.find_family_no_conflicts(attrs["ref"],self.fmap) diff --git a/gramps2/src/RelLib.py b/gramps2/src/RelLib.py index 17b0ac7d5..72ab8dd8b 100644 --- a/gramps2/src/RelLib.py +++ b/gramps2/src/RelLib.py @@ -2677,7 +2677,7 @@ class GrampsDB: else: person.set_id(val) assert(person.get_id()) - print person.get_id() + print "person.get_id():", person.get_id() assert(person.get_id()[0] == 'I') self.person_map.put(str(val), person.serialize()) self.pmap_index = self.pmap_index+1