svn: r2931
This commit is contained in:
Alex Roitman 2004-02-29 01:05:45 +00:00
parent f5e32655f8
commit b2e741eb0f
3 changed files with 19 additions and 16 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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