Eureka
svn: r2931
This commit is contained in:
parent
ae6f7749b7
commit
915bf08e8b
@ -911,9 +911,12 @@ class FamilyView:
|
|||||||
list = person.get_parent_family_id_list()
|
list = person.get_parent_family_id_list()
|
||||||
|
|
||||||
for (f,mrel,frel) in list:
|
for (f,mrel,frel) in list:
|
||||||
|
print (f,mrel,frel)
|
||||||
fam = self.parent.db.find_family_from_id(f)
|
fam = self.parent.db.find_family_from_id(f)
|
||||||
father_id = fam.get_father_id()
|
father_id = fam.get_father_id()
|
||||||
mother_id = fam.get_mother_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)
|
f = self.parent.db.find_person_from_id(father_id)
|
||||||
m = self.parent.db.find_person_from_id(mother_id)
|
m = self.parent.db.find_person_from_id(mother_id)
|
||||||
father = self.nameof(_("Father"),f,frel)
|
father = self.nameof(_("Father"),f,frel)
|
||||||
|
@ -920,21 +920,21 @@ class GrampsImportParser(GrampsParser):
|
|||||||
def __init__(self,database,callback,base):
|
def __init__(self,database,callback,base):
|
||||||
GrampsParser.__init__(self,database,callback,base)
|
GrampsParser.__init__(self,database,callback,base)
|
||||||
|
|
||||||
self.func_map["bookmark"] = (self.start_bmark, None)
|
# self.func_map["bookmark"] = (self.start_bmark, None)
|
||||||
self.func_map["child"] = (self.start_child,None)
|
# self.func_map["child"] = (self.start_child,None)
|
||||||
self.func_map["family"] = (self.start_family, None)
|
# self.func_map["family"] = (self.start_family, None)
|
||||||
self.func_map["father"] = (self.start_father, None)
|
# self.func_map["father"] = (self.start_father, None)
|
||||||
self.func_map["mother"] = (self.start_mother,None)
|
# self.func_map["mother"] = (self.start_mother,None)
|
||||||
self.func_map["people"] = (self.start_people, None)
|
# self.func_map["people"] = (self.start_people, None)
|
||||||
self.func_map["person"] = (self.start_person, self.stop_person)
|
# self.func_map["person"] = (self.start_person, self.stop_person)
|
||||||
self.func_map["objref"] = (self.start_objref, self.stop_objref)
|
# self.func_map["objref"] = (self.start_objref, self.stop_objref)
|
||||||
self.func_map["object"] = (self.start_object, self.stop_object)
|
# self.func_map["object"] = (self.start_object, self.stop_object)
|
||||||
self.func_map["place"] = (self.start_place, self.stop_place)
|
# self.func_map["place"] = (self.start_place, self.stop_place)
|
||||||
self.func_map["placeobj"] = (self.start_placeobj,self.stop_placeobj)
|
# self.func_map["placeobj"] = (self.start_placeobj,self.stop_placeobj)
|
||||||
self.func_map["source"] = (self.start_source, self.stop_source)
|
# self.func_map["source"] = (self.start_source, self.stop_source)
|
||||||
self.func_map["sourceref"]= (self.start_sourceref, self.stop_sourceref)
|
# self.func_map["sourceref"]= (self.start_sourceref, self.stop_sourceref)
|
||||||
self.func_map["childof"] = (self.start_childof,None)
|
# self.func_map["childof"] = (self.start_childof,None)
|
||||||
self.func_map["parentin"] = (self.start_parentin,None)
|
# self.func_map["parentin"] = (self.start_parentin,None)
|
||||||
|
|
||||||
def start_childof(self,attrs):
|
def start_childof(self,attrs):
|
||||||
family = self.db.find_family_no_conflicts(attrs["ref"],self.fmap)
|
family = self.db.find_family_no_conflicts(attrs["ref"],self.fmap)
|
||||||
|
@ -2677,7 +2677,7 @@ class GrampsDB:
|
|||||||
else:
|
else:
|
||||||
person.set_id(val)
|
person.set_id(val)
|
||||||
assert(person.get_id())
|
assert(person.get_id())
|
||||||
print person.get_id()
|
print "person.get_id():", person.get_id()
|
||||||
assert(person.get_id()[0] == 'I')
|
assert(person.get_id()[0] == 'I')
|
||||||
self.person_map.put(str(val), person.serialize())
|
self.person_map.put(str(val), person.serialize())
|
||||||
self.pmap_index = self.pmap_index+1
|
self.pmap_index = self.pmap_index+1
|
||||||
|
Loading…
Reference in New Issue
Block a user