4833: ImportGeneWeb and set_surname()
svn: r17111
This commit is contained in:
parent
05936b2f81
commit
fd19c6ab81
@ -707,7 +707,8 @@ class GeneWebParser(object):
|
|||||||
name = gen.lib.Name()
|
name = gen.lib.Name()
|
||||||
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
||||||
name.set_first_name(public_name)
|
name.set_first_name(public_name)
|
||||||
name.set_surname(surname)
|
surname_obj = name.get_primary_surname()
|
||||||
|
surname_obj.set_surname(surname)
|
||||||
person.set_primary_name(name)
|
person.set_primary_name(name)
|
||||||
|
|
||||||
for aka in nick_names:
|
for aka in nick_names:
|
||||||
@ -720,14 +721,16 @@ class GeneWebParser(object):
|
|||||||
name = gen.lib.Name()
|
name = gen.lib.Name()
|
||||||
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
||||||
name.set_first_name(aka)
|
name.set_first_name(aka)
|
||||||
name.set_surname(surname)
|
surname_obj = name.get_primary_surname()
|
||||||
|
surname_obj.set_surname(surname)
|
||||||
person.add_alternate_name(name)
|
person.add_alternate_name(name)
|
||||||
|
|
||||||
for aka in name_aliases:
|
for aka in name_aliases:
|
||||||
name = gen.lib.Name()
|
name = gen.lib.Name()
|
||||||
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
name.set_type(gen.lib.NameType(gen.lib.NameType.AKA))
|
||||||
name.set_first_name(aka)
|
name.set_first_name(aka)
|
||||||
name.set_surname(surname)
|
surname_obj = name.get_primary_surname()
|
||||||
|
surname_obj.set_surname(surname)
|
||||||
person.add_alternate_name(name)
|
person.add_alternate_name(name)
|
||||||
|
|
||||||
for aka in surname_aliases:
|
for aka in surname_aliases:
|
||||||
@ -737,7 +740,8 @@ class GeneWebParser(object):
|
|||||||
name.set_first_name(public_name)
|
name.set_first_name(public_name)
|
||||||
else:
|
else:
|
||||||
name.set_first_name(firstname)
|
name.set_first_name(firstname)
|
||||||
name.set_surname(aka)
|
surname_obj = name.get_primary_surname()
|
||||||
|
surname_obj.set_surname(aka)
|
||||||
person.add_alternate_name(name)
|
person.add_alternate_name(name)
|
||||||
|
|
||||||
if source:
|
if source:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user