diff --git a/gramps2/src/GrampsParser.py b/gramps2/src/GrampsParser.py index 0769a5d1b..b520b9cb5 100644 --- a/gramps2/src/GrampsParser.py +++ b/gramps2/src/GrampsParser.py @@ -920,22 +920,6 @@ 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) - def start_childof(self,attrs): family = self.db.find_family_no_conflicts(attrs["ref"],self.fmap) if attrs.has_key("mrel"): @@ -1086,4 +1070,3 @@ def build_place_title(loc): if country: value = append_value(value,country) return value - diff --git a/gramps2/src/PedView.py b/gramps2/src/PedView.py index 6cf0d607d..5e42ccb45 100644 --- a/gramps2/src/PedView.py +++ b/gramps2/src/PedView.py @@ -369,7 +369,8 @@ class PedigreeView: self.load_canvas(childlist[0]) elif len(childlist) > 1: myMenu = gtk.Menu() - for child in childlist: + for child_id in childlist: + child = self.parent.db.find_person_from_id(child_id) cname = GrampsCfg.nameof(child) menuitem = gtk.MenuItem(None) if find_children(child):