Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/g/r/gramps-3.4.2/src/gui/configure.py   Gramps(Download)
        self.examplename.set_first_name('Edwin Jose')
        examplesurname.set_prefix('von der')
        examplesurname.set_surname('Smith')
        examplesurname.set_connector('and')
        self.examplename.add_surname(examplesurname)
        examplesurnamesecond.set_surname('Weston')
        self.examplename.add_surname(examplesurnamesecond)
        examplesurnamepat.set_surname('Wilson')

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
            name.set_first_name(names[1].strip())
            surn = gen.lib.Surname()
            surn.set_surname(names[0].strip())
            surn.set_primary()
            name.set_surname_list([surn])
                name.set_first_name(names[0].strip())
                surn = gen.lib.Surname()
                surn.set_surname(names[2].strip())
                surn.set_primary()
                name.set_surname_list([surn])
        else:
            surn = gen.lib.Surname()
            surn.set_surname(line.data.strip())
            surn.set_primary()
            state.name.set_surname_list([surn])
            name = gen.lib.Name(state.person.primary_name)
            surn = gen.lib.Surname()
            surn.set_surname(data[0].strip())
            surn.set_primary()
            name.set_surname_list([surn])
            name = gen.lib.Name()
            surname = gen.lib.Surname()
            surname.set_surname(lname[-1].strip())
            surname.set_primary()
            name.set_surname_list([surname])

src/g/r/gramps-3.4.2/src/plugins/import/ImportProGen.py   Gramps(Download)
                name.set_type(gen.lib.NameType.BIRTH)
                sname = gen.lib.Surname()
                sname.set_surname(surname)
                name.add_surname(sname)
                if surname_prefix:
                        name = gen.lib.Name()
                        sname = gen.lib.Surname()
                        sname.set_surname(aname[-1].strip())
                        name.add_surname(sname)
                        name.set_first_name(' '.join(aname[0:-1]))

src/g/r/gramps-3.4.2/src/plugins/import/ImportVCard.py   Gramps(Download)
                surname = gen.lib.Surname()
                prefix, sname = splitof_nameprefix(self.unesc(surname_str))
                surname.set_surname(sname.strip())
                surname.set_prefix(prefix.strip())
                name.add_surname(surname)

src/g/r/gramps-3.4.2/src/plugins/import/ImportCsv.py   Gramps(Download)
            name.set_first_name(firstname)
            surname_obj = gen.lib.Surname()
            surname_obj.set_surname(surname)
            name.add_surname(surname_obj)
            person.set_primary_name(name)

src/g/r/gramps-3.4.2/src/plugins/drawreport/Calendar.py   Gramps(Download)
                name = gen.lib.Name(primary_name)
                surname = gen.lib.Surname()
                surname.set_surname(maiden_name)
                name.set_surname_list([surname])
        else:

src/g/r/gramps-3.4.2/src/gen/proxy/private.py   Gramps(Download)
        name = Name()
        surn = Surname()
        surn.set_surname(_('Private'))
        name.set_surname_list([surn])
        name.set_primary_surname()

src/g/r/gramps-3.4.2/src/gen/proxy/living.py   Gramps(Download)
            if int(surname.origintype) in [NameOriginType.PATRONYMIC, 
                                           NameOriginType.MATRONYMIC]:
                surname.set_surname(config.get('preferences.private-surname-text'))
            surnlst.append(surname)
        new_name.set_surname_list(surnlst)

src/g/r/gramps-3.4.2/src/Utils.py   Gramps(Download)
    if isinstance(obj, gen.lib.Person):
        surname = gen.lib.Surname()
        surname.set_surname('Unknown')
        name = gen.lib.Name()
        name.add_surname(surname)