4833: ImportGeneWeb and set_surname()

svn: r17110
This commit is contained in:
Jérôme Rapinat 2011-04-12 16:27:07 +00:00
parent 6286787526
commit 05936b2f81

View File

@ -524,7 +524,8 @@ class GeneWebParser(object):
name = gen.lib.Name()
name.set_type( gen.lib.NameType(gen.lib.NameType.BIRTH))
name.set_first_name(firstname)
name.set_surname(surname)
surname_obj = name.get_primary_surname()
surname_obj.set_surname(surname)
person.set_primary_name(name)
if person.get_gender() == gen.lib.Person.UNKNOWN and gender is not None:
person.set_gender(gender)